rmorse / search-filter

Search & Filter is a simple search and filtering plugin for WordPress
GNU General Public License v2.0
93 stars 41 forks source link

Only show the subcategories on dropdown #47

Open krysteleal opened 6 years ago

krysteleal commented 6 years ago

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

marcorivm commented 5 years ago

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