Kadence Blocks Pro offers the Dynamic Content feature. Dynamic Content, generally speaking, is any content entered on your site that is not static. For example, when a user is logged in and reviewing their account on your site, they are viewing their own account information that is dynamically pulled from the WordPress Database rather than statically entered in a post or page.
Requirements
Dynamic Content is a Kadence Feature that comes with the Kadence Blocks Pro plugin.
If you would like to use Dynamic Content inside of an Element and Hook it across your website, you also need the Kadence Theme Pro plugin. This plugin features Hooked Elements, which can be combined with Dynamic Content to create Template Elements and Dynamic Designs that can be hooked across your website.
You can also use Custom Fields from the Advanced Custom Fields, Pods, or Metabox plugin with Dynamic Content. Allowing you to dynamically display your custom fields across your website.
Blocks That Support Dynamic Content
Dynamic Content is a feature available on different Kadence Blocks. It is also available on some Gutenberg Blocks. Here is a list of all of our Blocks that support Dynamic Content.
Kadence Blocks
Default Gutenberg Blocks
Adding Dynamic Content
You can add Dynamic Content anywhere you see the Dynamic Content Icon. You will see the Dynamic Content Icon either in the Block ToolBar or next to a Block Setting.
Available Dynamic Content Types
Whenever you add Dynamic Content, you will have to select the Content in which you are going to use. This could be like a Post Title or an Author Display Name. You can click on the Dropdown to select one of our many Dynamic Content options available.
Available Content Options
Post – Post Title, Post URL, Post Excerpt, Post ID, Post Date, Post Last Modified Date, Featured Image URL, Post Type, Post Status, and Post Custom Field.
Archive – Title, URL, Description, or Archive Custom Field.
Site – Site Title, Tagline, URL, Page Title, Current Users Display Name, or Site Custom Setting.
Media – Media URL, Media TItle, Media Caption, Nedua Description, Media Alt Text, Media File Name, Attachment URL, Media Custom Field
Author – Author Display Name, Author First Name, Author Last Name, Author Bio, or Author Custom Field
Meta Relationship – Post Title, Post URL, Post Excerpt, Post Featured Image URL, Post Type, or Post Custom Field
Dynamic Sources
When selecting Dynamic Content, you have the Source and Content options. The Source option determines which source the Dynamic Content is pulled from. The Source is set to the “Current Post” by default. This means the Dynamic Content would apply to the current post shown on. If you were to add this to an Element and display it on multiple Posts, the Dynamic Content would change according to the Current Post that is being viewed.
The Current Post doesn’t directly mean the default Post. If you apply a Custom Field to a Custom Post Type, it would also use the Current Post source to display content from the Current Custom Post.
Usually, the Source stays as “Current Post”. However, there are many cases where you may want to change this. For example, if a restaurant had a website with a Menu that used Custom Fields to display the Items and Prices. You may want to show the Price of a Menu Item Dynamically somewhere else. You can do this by making the Menu Post the Source for the Dynamic Content and selecting the appropriate Custom Field to display the Price. This would allow you to show the Price Dynamically. If you would change the Menu Price, it will also change on the Dynamic Content.
When viewing the Content Source, you will see an Edit Icon. If you click on the Edit Icon, you can Search for a different Content Source to use.
Repeatable Content
One of the notable features within Dynamic Content is “Inline Dynamic Content.” This feature offers two distinct modes:
Inline Mode: In this mode, dynamic content integrates seamlessly with static text within supported blocks. You can customize and edit the text as needed, making it a flexible choice for content creation. This mode is the default way Dynamic Content behaves outside of the Query Loop (Adv) Block.
Replacement Mode: The “Replacement” mode completely replaces the existing text area within supported blocks with dynamic content. This mode is ideal when you want dynamic content to take precedence and remain uneditable, especially in scenarios like query loops.
The system is designed to be intelligent, selecting the appropriate mode based on the context. By default, it uses the “Replacement” mode in situations where it makes more sense, such as within a query loop, and the “Inline” mode for all other scenarios.
You can manually toggle between the two modes by accessing the “Dynamic Content Mode” or a similar option within the block’s “Advanced” settings.