WordPress.org

Ready to get started?Download WordPress

Forums

Suggestion : advanced filtering by tag/category with And/Or/Not criteria (2 posts)

  1. sabinou
    Member
    Posted 5 years ago #

    Hello,

    I would like to make a suggestion, for something that starts to be really lacking in WordPress.

    That would be to allow an advanced filtering of the blog posts, filtered by categories :

    - show posts belonging to categories A and C, but NOT from B and D"
    Or filtering by tags, instead of "show only posts with tag "E", for instance, it would be :
    - show posts containing tags E AND F

    Operators could help filter better, for instance :
    - show posts belonging to both categories C and D
    (not posts belonging to only one of the two categories)

    We could even imagine advanced filtering mixing the two criteria :
    - show posts belonging to categories B or C, AND containing the tag "E"

    For a small blog, that would be useless, I recognize it, but as soon as our blogs reach the 1500+ posts, with tags all around, and categories added as time flies, our old posts become worthless, they're lost in the mass.
    Advanced filtering would be so much better, allowing our visitors to receive precise results if they have precise needs !

    What do you guys think of it, as a feature suggestion ?

    Have a sunny day,
    Sabinou

  2. jbpisio
    Member
    Posted 5 years ago #

    I looked for a very long time to find a tag filter system similar to what you are describing, but I couldn't find one, so this is what I came up with for my page:

    sciemploy

    I used the plugin, Category Page which can be found at:

    Category Page

    It lets you connect pages to your category archive pages, showing them as a header. So, whatever you put in the connected page will show up as a header every time you click the category it has been connected to. The beauty of this is that you can have a separate header for each category that you have.

    Using that plugin, I connected an unpublished (so it wont show up on the title bar) page to each of my categories, which on my website, are the provinces of Canada. For the Category Page plugin to work properly, you have to publish the linked page when doing the connection. You can then switch it to unpublished right after, though.

    Each of the connected pages has a set of Icons with links that look something like:

    http://sciemploy.ca/tag/environment+bc/
    http://sciemploy.ca/tag/engineering+bc/
    ...etc

    For each category, you have to switch the second tag in the link to match the category it will be searching within.

    So on my website, when you click a category (Province), it shows all of the companies in my directory from that province, but when you click on the buttons in the category page header, it essentially does a double tag search (Province + Industry).

    You just have to make sure you tag all of your posts with both the Category name and your refined search parameter. In my case, I tag every post by Province, which is also the category I file it under, and by the Industry.

Topic Closed

This topic has been closed to new replies.

About this Topic