• Resolved MG2712

    (@mg2712)


    Hello all,

    can I exclude single entries of a filter list?
    So for example I have the categories Cat, Dog, Mouse and I want to give the user the option to select a filter over a radio button which allows the search within cat or dog but not within mouse. Mouse you should only find with the general search without filter.

    Or more simple can I hide some entries in my filterlists?

    Tanks in advance.

    https://wordpress.org/plugins/search-filter/

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

    (@designsandcode)

    Hey there, I’m afraid excluding categories is a pro feature, but you can achieve it using a WP filter:

    https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Exclude_categories_on_your_main_page

    You will have to combine the example “Exclude categories on your main page” and “Exclude Pages from Search Results”

    Thanks

    Thread Starter MG2712

    (@mg2712)

    Hey,

    it is less about the search algorithm and more about the front-end. I also want to hide “pages” in the search filter options, as most users wouldn’t understand what this is about. It would also be great to rewrite post in the front-end. Is that possible in the pro Version?

    Plugin Author DesignsAndCode

    (@designsandcode)

    Hi again

    You can hide various options in your taxonomy fields in pro, is this what you are looking for? In this case its possible.

    I’m not fully sure what this means:

    It would also be great to rewrite post in the front-end. Is that possible in the pro Version

    Thanks

    Thread Starter MG2712

    (@mg2712)

    I bought the pro version and it worked. Sorry that I had difficulties to express my problem correct.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude single categories of a radio button filter’ is closed to new replies.