Forums › Forums › Search & Filter Pro › Taxonomies not working with WP blog post tags
Tagged: taxonomy
- This topic has 2 replies, 2 voices, and was last updated 7 years, 7 months ago by Anonymous.
-
Anonymous(Private) March 22, 2017 at 8:23 pm #98873
I’m trying to create a search form with 4 comboboxes drawing from separate lists of WordPress post tags.
http://www.benjaminsisson.com/turnoutdemo/find-opportunities/I’ve created a form with the following settings, but I’m not seeing the tags populate the comboboxes:
SETTINGS & DEFAULTS>GENERAL
Search in the following post types:PostsSETTINGS & DEFAULTS>TAGS, CATEGORIES, AND TAXONOMIES
Including categories and tags of postsSEARCH FORM UI
Taxonomy:Format
Advanced settings: Excluding specific tag IDsAny idea how to get the tags to populate in the taxonomy comboboxes?
Trevor(Private) March 23, 2017 at 2:09 pm #98967If you have multiple fields of Includes, they work as AND operators and thus narrow the number of posts down, probably to the point that no posts will show in your case. I can also see that you have used the same taxonomy four times in the form. This is not allowed. You can only use each filter key once in each form.
I would guess that you have multiple parent/child hierarchies (or groups of terms) in that taxonomy and want them as separate dropdowns.
It is best not to do it this way (as it will most likely go wrong). Instead you need to split the parent terms into separate taxonomies.
You can use a plugin to add these custom Taxonomies, and another plugin to move the Category terms (always switch the parent of the children with the children).
This post tries to explain this a bit better (you can use a plugin to switch category terms from category to any new taxonomy that you make, so it is not so hard to do). It is a really awful preachy lecture I wrote:
https://support.searchandfilter.com/forums/topic/multiple-categories-combination/#post-55166
Sorry about the tone, but the message is right and it links to good plugins (except taxonomy switcher I think). If I missed anything (I probably did, my apologies), follow up and nudge me.
-
AuthorPosts