Problem: I would like to create a taxonomy archive that shows information about the current term, including some custom fields, outside the loop of posts. I would also like to include some information about the term, including custom fields, inside the loop. I would like to build this page with Divi Builder.
Solution: Create a WordPress Archive for this taxonomy. Create two Content Templates - one for the content above the loop (Content Template 1) and one for the content in the loop (Content Template 2).
Edit Content Template 1 with Divi Builder. Insert shortcodes to display information about the current term, including custom fields. There is currently a bug in the beta plugins that prevents you from inserting term fields in a WordPress Archive directly.
Edit Content Template 2 with Divi Builder. Insert shortcodes to display the information about each post in the loop. If you need to display information about the current term, use the wpv-taxonomy-archive shortcode:
[types field="image-field-slug" id="[wpv-taxonomy-archive info='id']"][/types]
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-archive
https://toolset.com/documentation/customizing-sites-using-php/functions/
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 17 replies, has 2 voices.
Last updated by 6 years, 11 months ago.
Assisted by: Christian Cox.