Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Parametric Search displaying top level taxonomies

$
0
0

I'm trying to create a parametric search displaying taxonomy checkboxes. So far the taxonomies are displaying but I need to have better control of which taxonomies gets displayed.

For example, I have a custom taxonomy set up like this:

Coats
– Short Coats
– Long Coats
– Winter Coats

Jackets
– Long Jackets
– Short Jackets
– Fall Jackets

Shoes
– Boots
– Trainers
– Flat Shoes

Now I only want the top taxonomies to be displayed in the taxonomy filter checkbox section, e.g. Coats, Jackets, Shoes, and not the sub-ones.

I currently have the filter with the following shortcode:

[wpml-string context="wpv-views"]Product Categories:[/wpml-string]
[wpv-control taxonomy="products" url_param="wpv-products" type="checkboxes" taxonomy_order="ASC" taxonomy_orderby="id" hide_empty="true"]

Is there a way to modify this to only display the top taxonomies?

Thanks


Viewing all articles
Browse latest Browse all 20145

Trending Articles