Problem: I would like to see a list of posts that are assigned to a particular Content Template.
Solution: The simplest quick way is to create a View that displays all posts and include a conditional that tests the value of the hidden custom field _views_template. For very large sites this might not be very practical, but you could use pagination if the list of all posts is quite long.
[wpv-conditional if="('[wpv-post-field name="_views_template"]' eq 12345)" debug="true"] [wpv-post-link] uses template 12345<br /> [/wpv-conditional]
Relevant Documentation:
https://toolset.com/documentation/user-guides/views/conditional-html-output-in-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 5 replies, has 2 voices.
Last updated by 4 years, 5 months ago.
Assisted by: Christian Cox.