Skip Navigation

[Resolved] Display of hierarchical custom post taxonomy

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

Problem:
How to display taxonomy terms filter using checkboxes in hierarchical manner.

Solution:
To display terms with your taxonomy filter in hierarchical manner you should add attribute "output" to display filter with hierarchical terms:

For example:

[wpv-control-post-taxonomy taxonomy="vehicle-type" output="legacy" type="checkboxes" url_param="wpv-vehicle-type"]

You can find proposed solution with the following reply:
=> https://toolset.com/forums/topic/display-of-hierarchical-custom-post-taxonomy/#post-596153

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-control-post-taxonomy

This support ticket is created 6 years, 12 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by perryL 6 years, 12 months ago.

Assisted by: Minesh.

Author
Posts
#596098
grab.jpeg

I am trying to: display search controls for my hierarchical custom post taxonomy as a series of nested lists.

Link to a page where the issue can be seen: hidden link

I expected to see: search controls for my hierarchical custom post taxonomy as a series of nested lists (e.g. 'city' is parent of 'large city' and 'small city')

Instead, I got: one div for each taxonomy value with no hierarchy (no nesting). However, I see that my CRED form displays the checkboxes as expected: hidden link (scroll down a bit). Perhaps I have set an option for the search controls incorrectly? I dont see any class I can use to distinguish 'child' (or 'child-of-child') taxonomy values but something like that would work fine for me. THANKS!

#596153

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand you would like to display terms display with your taxonomy filter in hierarchical manner. If this is correct:

You should add attribute "output" to display filter with hierarchical terms:

output="legacy"

For example:

[wpv-control-post-taxonomy taxonomy="vehicle-type" output="legacy" type="checkboxes" url_param="wpv-vehicle-type"]
#596926

Thanks!