Dynamic CPT Image

  • Hey guys, we have CPT and taxonomies for companies, which I display on every post that is associated with that company. This works fine. I was trying to add the logo of that company. My first idea was a dynamic icon (this option is missing). Now I tried Dynamic Container Background Image and Dynamic Image.

    For this I created a field in ACF with an image. This field is shown in CPT and Custom Taxonomy. The field name is: company_icon. The problem, when I try to add any dynamic stuff and try to get this image inside, I dont get any output. Any idea what i have done wrong? In each post i choose that custom taxonomy, so the link is there, it shows the name (button) to that company in that article right.

  • Hi there,

    What is the Return Format set for the ACF Image Field? Also, are you using a dynamic tag to output the image? We might need to take a closer look at the full setup in the backend to provide more concise advice.

  • It looks like that Term Dynamic Tags are not 100% working in the new GB Version https://share.cleanshot.com/wp0TXZkX9RlDSyDJf1X3

    Also can’t find the way how to handle terms list with GP 2.0… and docs say nothing

  • Adding it manually with {{term_meta key:cat_svg-icon}} works btw

  • Also can’t find the way how to handle terms list with GP 2.0… and docs say nothing

    Please check below doc:
    https://learn.generatepress.com/blocks/dynamic-tags/term-list/

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