Skip Navigation

[Closed] Use term image taxonomy in content template created with Block

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 5 months, 1 week ago.

Author
Posts
#2702889

Hi there,

I am trying to use a dynamic image (from taxonomy term) in a content template. I see I can use shortcode, but for that I need to use HTML in the content template. How could I continue to use Block and use a dynamic image taxonomy?

Thanks a lot.

#2703058

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Franck

Toolset dynamic sources don't support term meta as sources, so if you have a template for some post type whose posts have terms of a taxonomy assigned, you can't dynamically output meta from those terms using blocks.

You could use legacy Views to create a taxonomy View that displays terms of your chosen taxonomy (and which includes a Query Filter to only return terms assigned to the post where the View is shown), use a Content Template for the output of the View (the Loop Wizard will create one for you). But you still won't be able to use the Image block to output the image, you will need to use markup where the src attribute of an img element is generated via shortcode.

The alternative would be a custom shortcode.

The topic ‘[Closed] Use term image taxonomy in content template created with Block’ is closed to new replies.