WordPress.org

Ready to get started?Download WordPress

Ideas

Surfing and Filtering Tags

  1. artsy.ca
    Member

    This is a behaviour that should be intrinsic to WordPress but unfortunately it's not readily available.

    The tagging structure is already at a mature level where a query to

    /tag/apple+orange

    will display all posts tagged apple and orange.

    It would be very useful to be able to click on a series of tags and filter the results in this fashion while browsing.

    For example, clicking on a tag for 'orange' on the home page will take us to /tag/orange. Subsequently, clicking on 'apple' takes us to /tag/apple. This is what we can call 'SURFING' the tags.

    'FILTERING' the tags would be similar, but additive. Clicking on the tag for 'orange' on the home page will take us to /tag/orange. Subsequently, clicking on 'apple' will take us to /tag/orange+apple. Thereby filtering our results down to posts that are tagged with multiple tags.

    Even better, it would be good if the widget on the sidebar would intelligently update itself to show only tags that are applicable in the new frame of reference.

    The user should have a convenient way of switching between filter and surf mode.

    Posted: 5 years ago #
  2. jbpisio
    Member

    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.

    Posted: 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    4 Votes
  • Status

    This is plugin territory