Problem: I have a WordPress Archive for a taxonomy, and in each item I have nested a View. In that View I would like to display information about the current item in the loop, but it always seems to output the same information for each item in the loop.
Solution: Add a post ID filter in the View, and set it to respond to a shortcode attribute. Pass the current post ID into the shortcode attribute like this:
[wpv-view name="nested-view-slug" ids="[wpv-post-id]"]
Relevant Documentation:
https://toolset.com/documentation/user-guides/passing-arguments-to-views/
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 4 replies, has 2 voices.
Last updated by 5 years, 5 months ago.
Assisted by: Christian Cox.