Skip Navigation

[Resolved] Taxonomy direct Links in mixed taxonomies

This thread is resolved. Here is a description of the problem and solution.

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 support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

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)

Tagged: 

This topic contains 15 replies, has 2 voices.

Last updated by Alessandro 4 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1742555

My issue is resolved now. Thank you!
Sorry
For the post "While visiting hidden link it has a 404 " I was wrong with another ticket