Support Forums

Support Forums Forums Search & Filter Pro Tags filtering.

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  stennn 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • stennn

    I want to add to filters with tags.

    First tag filter should filter the countries accepted of posts.
    Second tag filter should filter the languages of posts.

    How can I do this? Choosing one country as UK and other tag as english does not show only results with both tags but show only the last one chosen.

    Trevor Moderator

    You need to separate out groups, branches or parent/child tags into separate custom taxonomies. In the case of your form, this means you plan to use tags twice, so you really need a taxonomy for country and one for languages. In general, you can use a particular Taxonomy, such as Category, (or Tags, each Taxonomy and each Custom Field) only once in the form. 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:

    Sorry about the tone, but the message is right and it links to good plugins (except taxonomy switcher I think).

    Taxonomy switcher is a ‘use once and remove’ type of plugin, and it uses ‘hidden’ features in WordPress that have not changed for about 2 years.

    Let us say that you have Categories (as WordPress calls them) on some posts, and some of them are fruit types. For example, Apple. Now you decide to have a separate taxonomy called Fruit Type. You may have hundreds of posts with those fruit types already in Categories, and don’t want to retype them all again. Let us say the the Apple ‘term’ has an ID # of 234 (they all have ID numbers). You tell Taxonomy Switcher to move the term 234 from Categories to Fruit Types, and it does all the work for you. You can do a whole bunch of IDs at once, all you need is their ID numbers.

    IF you went in to one of our forms in admin, to the Tags, Categories & Taxonomies settings tab, find the line for Categories (in this case) and use the search to ‘add’ all the ones you want to move, then you will see in the settings box all the ID numbers you need to be able to do this. So, cut them from that box and paste them in to Taxonomy Switcher.

    Be wary if you have child terms though (those which have a parent), as the parent may have to be moved also.


    OMG. You have been most helpful :). Already messing with custom post types and filtering is working! Thanks mate!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Tags filtering.’ is closed to new replies.