Forum: Feature Requests

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Feature Requests premium extension please open a new premium support ticket.

[Resolved]Exclude Category from Search Form

Forums Feature Requests Exclude Category from Search Form

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #45809

    Hej everyone!

    I have trouble excluding a certain category from the drop-down menu in the search form. Actually Users should not see this certrain category in the drop down.

    I tried to edit “gmw-pt-search-query-class.php” but it didn’t really work. Any ideas?

    Many thanks in advance!


    I’m sorry i just found your guide here:

    Anyway, I think I did a mistake somewhere, as not all categeries are being shown. I’ll try to find it out, why the solution above doesn’t work for me and update here. I’m pretty sure I mixed something up ^^”


    Try the below ( in functions.php file ):

    Follow the notes. You need to set the form ID, the taxonomy and the term ID’s you’d like to exclude.


    the code is messed up a bit. replace &#038&#038 with &&.


    Holy *!
    Thank you so much, it worked like charm.

    There’s only a mistake I made somewhere, so that not all categories are shown, which I want to be seen. But hiding this one worked perfectly and easy!

    Many Thanks & keep up the good work!


    You are welcome. I am glad I could help :).


    i have the same issue
    want to hide one category from one search form
    but the link the other user posted dont work anymore

    could you please help
    ive tested your above posted code but no luck
    im trying to hide the category /goodsitter/ from this form

    Geo Map

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

You must be logged in to reply to this topic.