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

Home Forums Feature Requests Exclude Category from Search Form

This topic contains 6 replies, has 3 voices, and was last updated by  Sascha 2 years, 6 months ago.

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

    sportsbuddies
    Participant

    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!

    #45864

    sportsbuddies
    Participant

    EDIT:
    I’m sorry i just found your guide here:
    https://geomywp.com/support/topic/how-to-insert-form-with-pre-selected-category-wo-hiding-the-other-choices/

    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 ^^”

    #45913

    Eyal Fitoussi
    Keymaster

    Hi,
    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.

    #45914

    Eyal Fitoussi
    Keymaster

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

    #46010

    sportsbuddies
    Participant

    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!

    #46021

    Eyal Fitoussi
    Keymaster

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

    #55606

    Sascha
    Participant

    hello,
    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.