Is there a shortcode to use a specific taxonomy term to populate a static header element or text in a post? I can use the {{dc:archive:title}} to call on a category name, but what if I’ve created custom taxonomy terms?
Hi @mattcaldwell,
Please check this thread instead for guidance.
As stated, if you want to add dynamic content you need to install a plugin such as the Advanced Custom Fields Pro
Hope this helps.
Thanks for the reply. We do have ACF installed and have custom taxonomies created already. We will take a look at this and post back if we have any questions.
Thanks!
You are most welcome!
Because the thread dates back to a number of topics with secured notes that I can’t view, would you mind reiterating in one post how we can have a “headline” or “text” return the taxonomy or term, even with ACF?
Hello @mattcaldwell,
Thanks for updating in!
To know more about ACF and the builder, please check this out:
Hope this helps.
Thanks for the video,
This pertains more to taxonomy terms where if I am using ACF and have a field as a taxonomy type, I can select it under pro builder, but it does not return a string, or the term title of that post. If multiple terms are selected, I can see " , , , " but without any words. On a certain taxonomy term called “locations”, I get the taxonomy ID but not the object, even if I’ve selected the return on object in ACF and not ID. Thanks.
Hey Matt,
Based on your screenshot, you’re trying to output arrays.
The Dynamic Content and even ACF Shortcode currently supports simple texts only. You will need to develop your own custom shortcode to output an ACF Field that carries multiple values. This is true even if you don’t use ACF. You need to develop a shortcode that list terms or taxonomies. Regretfully, this is beyond the scope of our theme support.
I quickly searched the WordPress repository and found this plugin which might help you or at least you can inspect the plugin’s code to achieve what you need.
Hope that helps.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.