Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Dynamic Data > List of terms > Term separator

  • Hi guys,

    I’m trying to use the dynamic data ‘list of terms’ to display little buttons for the post tags on cards. I’ve been able to set these up with ACF fields for my City/State, but outputting the list of terms only gives me an option to add a separator.

    Is there anyway to set these up so each tag name has it’s own instance of the button I’m using?

    Screenshot of frontend

    Dynamic tag block settings

    Thanks,
    Greg

  • Hi there,

    Not sure what you mean, do you want to have different style for the buttons?

  • Hi Ying,

    The dynamic tag is outputting the tags as a list, with only an option to add a separator eg. a space, comma or pipe character perhaps.

    I would like to output each individual tag as an individual element, in this case a button.

    Is this possible with dynamic tags?

    Thanks,
    Greg

  • Hi there,

    This isn’t possible with the Button block. However, you can use a Text block instead and style it with CSS to look like a button.

  • Hi Alvind,

    Thanks for your reply. I’ve looked at dynamic data for a text block and can only see the same options available, eg. List of terms. I’d like to display individual terms if possible?

    Thanks,
    Greg

  • Hi there,

    1. add a Text block with the Dynamic Terms set to the Term List and set the Link To term.
    2. in the blocks styles panel, choose the more Selector and select the Link selector.

    You can now add Padding, colors and some margin/gap to style each of the links.

  • Great, thanks David – sorry, I didn’t think to set a link on the term and create styling off the back of that.

    Appreciate the help from you all, as ever!

  • No problem, it’s a change from the old method. And needs documenting.
    So glad to be of help!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.