Archived topic
Dynamic Tags - Taxonomy Term description field
3 replies · Started by Matt on August 2, 2021
Hi,
I have a woocommerce wordpress site where I have registered a custom taxonomy for products (eg. shape).
I am wanting to use generateblocks and GP dynamic fields to create an archive page header for each taxonomy term eg: (Shape > Square , Shape > Triangle) using the default name and description metaboxes created when the custom taxonomy is registered. I have also registered a custom image field with ACF to allow for a taxonomy term image.
I created a 'block' type element and use Generateblocks to lay it out. I can dynamically populate the 'Title' text (with dynamic text type = 'title') and the background image (with dynamic Background Image = 'term_meta' and the meta field name = 'my_acf_field_name') but I am unable to retrieve the content of the 'description' field.
I can see that this description data is stored in the wp_term_taxonomy table and not the wp_termmeta table (like the image) or wp_terms table (like the title).
Is it possible to dynamically populate text with GP and GB with data from this field?
Thanks
Hi there,
to get the category term description you can use the GP Dynamic Content Block and select Term Description from its options.
Thanks.. RTFM
Much appreciated.
Glad to be of help