• Resolved greenhoe

    (@greenhoe)


    Hi,

    I was wondering is there a way to make this filter within the category that you are already viewing rather than send it through to the new filter category?

    For example I have a taxonomy called filter with “free” and “members” but if I”m viewing a certain category of my posts than use filter it takes me to all the “free” posts rather than just the ones within that category that I’m viewing.

    I know that I could add another checkbox for categories but the way I have my site setup I don’t want checkbox for the categories just for the filters of “free” and “members”

    https://www.ads-software.com/plugins/search-filter/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author DesignsAndCode

    (@designsandcode)

    Ahhh I think I know what you mean, you will need to add a another field to the form for categories (this can be a dropdown if you like so it is less visible and takes less space), so when a user presses search, then the category is submitted and retained – it will automatically be preselected to the current category so the user should not need to choose a category – just leave it “as is”.

    Unfortunately there is no way to “preset” the form to work with the current category without giving the user a category option.

    Thread Starter greenhoe

    (@greenhoe)

    I see, so I could technically add a category field and just hide it. I will will try that and see how it works. Thanks

    Plugin Author DesignsAndCode

    (@designsandcode)

    Yup if you hide it with JS or something I think that should work fine ?? (not completely ideal I know)

    Thread Starter greenhoe

    (@greenhoe)

    I ended up hiding it through CSS by just setting it to display none. Thanks for the help.

    Plugin Author DesignsAndCode

    (@designsandcode)

    np ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can you have this filter within the category you are already viewing?’ is closed to new replies.