search-filter icon indicating copy to clipboard operation
search-filter copied to clipboard

Only show the subcategories on dropdown

Open krysteleal opened this issue 6 years ago • 1 comments

On my categories pages (www.mywebsite.com/category/name), I'm using this shortcode:

<?php echo do_shortcode( '[searchandfilter taxonomies="category" submit_label="Search"]' ); ?> It's possible that the dropdown shows only the sub-categories of the category of the current open page?

For example: Imagine that I'm on the /category/food page (Food is the parent category). This category has three sub-categories: Mexican, French and Italian.

But on my site, I have other parent categories like Travel and Tech and other sub-categories.

When I open a category page, on the drop-down selection, I have all the categories and subcategories on my website, and I only want to show only the three subcategories (Mexican, French and Italian) - the sub-categories associated with the Parent Category of the page that I'm on.

Is it possible?

Thanks

krysteleal avatar Sep 06 '18 21:09 krysteleal

Hey @krysteleal I'm facing a similar issue, did you find any solutions?

marcorivm avatar Dec 17 '18 20:12 marcorivm