Skip Navigation

[Resolved] Selective Taxonomy View

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

Problem:
I have created a nested Taxonomy view showing the Child Taxonomy Terms(nested child view) within a Parent Taxonomy Term (parent view) with the help of this guide https://toolset.com/documentation/user-guides/views/using-a-child-view-in-a-taxonomy-view-layout/#taxonomy-view-within-taxonomy-view

Everything is fine but I want to display specific Parent views set by specific parent term ID or anything convenient in this regard so that I can put them in page builder to generate views.

Solution:
We can pass a list of IDs, separated by comma(,) to the view if we configure a filter like shown on this screenshot http://prntscr.com/v12ke1
Then we can include the view like this:

[wpv-view name="my-taxonomy-view" terms="15"]
 
OR
 
[wpv-view name="my-taxonomy-view" terms="15, 27, 98"]

Relevant Documentation:
https://toolset.com/documentation/user-guides/views/passing-arguments-to-views/

This support ticket is created 4 years, 1 month 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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 5 replies, has 2 voices.

Last updated by deepS 4 years ago.

Assisted by: Jamal.

Author
Posts
#1813553

Hi,
I have created a nested Taxonomy view showing the Child Taxonomy Terms(nested child view) within a Parent Taxonomy Term (parent view) with the help of this guide https://toolset.com/documentation/user-guides/views/using-a-child-view-in-a-taxonomy-view-layout/#taxonomy-view-within-taxonomy-view

Everything is fine but I want to display specific Parent views set by specific parent term ID or anything convenient in this regard so that I can put them in page builder to generate views. Please help.

Thanks

#1814669

Hello and thank you for contacting the Toolset support.

I am sorry, but I am not really sure to understand what do you want to achieve. Please correct me if I am wrong.
Are you trying to display, in the first level view, only a specific term, and display its children on its nested view?

If that's the case, you can pass a list of IDs, separated by comma(,) to the view, if you configure a filter like shown on this screenshot hidden link
Then you can include the view like this:

[wpv-view name="my-taxonomy-view" terms="15"]

OR

[wpv-view name="my-taxonomy-view" terms="15, 27, 98"]

I hope this helps. Otherwise, please elaborate more on your question, provide a sample such ass some terms and their children and what would you like to achieve.

#1815785

My issue is resolved now. Thank you!

#1816225

Hi, one small issue left. I am using [wpv-found-count] shortcode to display the number of posts inside the Parent term (including child terms), but it's displaying a wrong count. why?

New threads created by Jamal and linked to this one are listed below:

https://toolset.com/forums/topic/post-counts-are-not-correct/

#1816243

Post counts will only work in Post views. It will not work in taxonomy views.

However, for support rules, we are able to handle only one issue at a time. This helps us to bring you a better service and also helps other users to find all the information here exposed. For that reason, I have created another ticket to handle this new issue. I'll be posting my replies there.

#1819707

Thank you!