Problem: In a View of Products, I would like to nest another View of Products that is filtered by the same Primary Category as the current post in the loop. The Primary Category is a feature from Yoast SEO.
Solution: Yoast's Primary Category is stored as a term ID in a hidden custom field _yoast_wpseo_primary_product_cat on the Product post. You can set up a View of Products filtered by term slug set by a shortcode attribute, convert the term ID into a term slug with PHP, and pass the term slug into a PHP render_view function.
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
|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)