Problem: I have a View of taxonomy terms that I am using to create a list of links to different pages that each contain a filtered View. The links work well now, but some of the Views on these pages have no results. If the View contains no results, I would like to hide the link to that page.
Solution: Use a View as a conditional to determine whether or not results are found. If results are found, display the link. If no results are found, display nothing. Use shortcode attributes and the wpv-attribute shortcode as needed to pass information around between Views and their parent context.
Relevant Documentation:
https://toolset.com/documentation/user-guides/views/passing-arguments-to-views/
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-attribute
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-taxonomy-slug
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-taxonomy-title
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 15 replies, has 2 voices.
Last updated by 4 years, 4 months ago.
Assisted by: Christian Cox.