Support Forums

Support Forums Forums Search & Filter Pro Filter by multiple categories

This topic is: resolved

This topic contains 9 replies, has 2 voices, and was last updated by  Trevor 4 weeks ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • paulka
    #219340

    So this should be easy for anyone, but I’m being a noob.

    I have a list of categories used to group various posts together. Eg.

    Categories (With Hierarchy):
    -Color
    –red
    –yellow
    –blue
    -Shelter Name
    –SPCA
    –Pet Rescue
    –Happy tails
    …etc
    -Status
    –up for auction
    –urgently seeking home

    I’d like to show a search option like so:

    Status: (Radio)
    up for auction OR urgently seeking home

    Shelter Name: (drop down)
    1
    2
    3

    However, when I attempt to filter by the first category, it removes other options or doesn’t find any results. I used the exlcude IDs to try format the list as I require but not getting accurate results.

    Trevor Moderator
    #219347

    Ah. See this post:

    https://support.searchandfilter.com/forums/topic/multi-level-filter/#post-217171

    You need to make two custom taxonomies, one called Color and the other called Status, and maybe one for Shelter Name.

    Before you switch the terms over, make sure you edit each term so it is a parent and not a child.

    paulka
    #219357

    Ah thanks! Inherited code :facepalm:

    Trevor Moderator
    #219359

    Is it OK to close this thread?

    paulka
    #219386

    Thanks Trevor, just a moment please. So Here’s what I have now:

    <bold being selected>
    Custom post type: pet
    Category: Dog | Cat | Fish
    (New taxonomy) shelter: SPCA | pet rescue | etc…
    (New taxonomy) pet_status: For adoption | urgent | etc…

    On one form I’d like to only have a choice of two of stautses.

    To do this I created a Radio input with the pet_status as the Taxonomy, and used advanced settings to exclude all theother statuses, so I’m only left with 2.

    But if I select them, no results are found (Although the count shows thousands each). They seem to have the correct taxonomy attached, and I tried removing an adding it again with no success.

    Trevor Moderator
    #219390
    This reply has been marked as private.
    paulka
    #219449
    This reply has been marked as private.
    Trevor Moderator
    #219522
    This reply has been marked as private.
    paulka
    #219622
    This reply has been marked as private.
    Trevor Moderator
    #219634

    Thanks for letting me know.

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

The topic ‘Filter by multiple categories’ is closed to new replies.