GenerateBlocks 2.0 is here - Read the release post

Learn GenerateBlocks

Dynamic Tags

Dynamic Tags are the ultimate no-code solution for showcasing dynamic content across your entire site. Whether you’re working with standard content or building specialized sites with custom content types and fields, Dynamic Tags has you covered.

With GenerateBlocks, you can style and lay out your dynamic data just like any regular content—giving you the flexibility to create stunning, personalized experiences without breaking a sweat.

What are Dynamic Tags

Dynamic Tags allow you to directly insert and preview dynamic content from your database straight inside the Block Editor. Each Tag:

  • displays a specific piece of data eg. a title, image or some post meta.
  • has customziation options eg. adds a link or sets an image size.
  • uses a common syntax with optional parameters

There are 25 Tags to work with, and each of them comes with its own custom options to set different arguments.

Dynamic Tag syntax

{{dynamic_tag_name parameter1:value1|parameter2:value2 ...}}

An example of a dynamic tag without parameters:

{{post_title}}

An example of a dynamic tag with parameters:

{{post_title link:post}}

An example of a dynamic tag with multiple parameters separated by a pipe ( | ):

{{term_list link:term|tax:category|sep:,}}

Creating and adding Dynamic Tags

Adding dynamic tags is completed in 4 simple steps.

  1. Open the Dynamic Tag Editor
  2. Choose the Dynamic Tag
  3. Set the Tag Parameters
  4. Insert the Dynamic Tag

1. Open the Dynamic Tag editor

A Dynamic Tag can be inserted anywhere you see the Open Dynamic Tag editor button:

Open Dynamic Tag editor

The button can be found in the most commonly required places:

  • the Block Toolbar for inserting into the blocks content
  • the Block Toolbar Link field for adding dynamic links to a button block
  • the Block Settings fields such as Image URL and Links

2. Choose a Dynamic Tag

Select the Dynamic Tag from the drop down modal

3. Set the Dynamic Tag parameters

adjust the Dynamic Tags returned value by setting the parameters

3.1 Required to render

This option controls what happens when the dynamic tag returns no value.

If enabled, the block will be displayed only when the dynamic tag has a value. If no value is returned, the block will be removed.

This applies to any GenerateBlock where the dynamic tag is used in its content, a block setting (e.g., image URL), or an Advanced > Data Attribute (Pro only).

4. Insert the Dynamic Tag

click the Insert Dynamic Tag but to add the tag to the Block.

Editing Dynamic Tags

A block can contain one or many dynamic tags. You can re-open the dynamic tag editor modal on any block to examine and edit existing tags attached to the block or add additional tags.

Open Dynamic Tag editor

Dynamic Tag Preview and Editing Modes

Blocks containing Dynamic Tags can have one of two states in the editor: Preview mode and Edit Mode.

Block Preview Mode

Blocks containing a Dynamic Tag default to PREVEW Mode. This is indicated by the highlighted preview toggle in the blocks toolbar. You can toggle between Preview and Edit.

Whist in Preview mode the:

  1. the blocks content cannot be edited
  2. the actual dynamic data value may* be displayed

Preview is not working

It may not be possible for GenerateBlocks to retrieve the dynamic data within the block editor. This may be a limitation on the data source eg. no REST API support. Check the front end to see if it is working.

Block Edit Mode

Edit mode is the alternate state for a block containing a dynamic tag and is indicated by the PREVIEW tag in the toolbar. You can toggle between Preview and Edit.

In Edit Mode:

  1. the blocks content can be edited
  2. dynamic tags are displayed instead of their values
  3. you can insert additional tags in the cursor position

Multiple Dynamic Tags and mixed content

A Blocks content can contain multiple Dynamic Tags in addition to static content. Allowing you to combine text outputs from multiple sources. A simple example would be an author byline:

Written by: David on February 1, 2025 8:18 pm

To do this:

  1. add a Text Block and type in the prefix text eg. Written by:
  2. open the Dynamic Tag editor from the blocks toolbar
  3. add the Dynamic Tag for the author_meta key:display_name
  4. switch the block state to Edit Mode, add the additional static text eg. on
  5. open the Dynamic Tag editor from the block toolbar
  6. add the Dynamic Tag for the post_date

Whilst in edit mode you will see something like this:

Written by: {{author_meta key:display_name}} on {{post_date}}

Using the dynamic data and static content together allows

Manually adding tags

The Dynamic Tag editor modal is a convenience tool allowing you build and edit tags with a user friendly interface. But that is all it does. You can if you wish manually type or copy and paste a Dynamic Tag into the blocks content or block setting.