Restrict search results to a specific Post category

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Restrict search results to a specific Post category

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21150
    glucz
    glucz
    Participant

    I created a search and shortcode that I included on a page. I wanted to restrict search results to a single specific category.

    Unfortunately, I keep getting results from the complete site. I tried the regular engines well as the indexed engine and both work the same.

    I followed the instructions here
    https://documentation.ajaxsearchpro.com/frontend-search-settings/category-and-taxponomy-term-filters
    but this did not work either

    This is the search field:
    https://www.langlovagok.hu/cegajanlo/
    (just above the footer)
    The search in the header is the global search and is supposed to search the whole site.

    I found some examples on your site, but all were filters in functions.php to restrict result entries to the current category. What I’m looking for is the stock functionality in the GUI. It must be a single trick that I’m missing, however, both of us IT professionals have not been able to find it since last week.

    If you must have the admin access I will send it, but first please share the trick to accomplish this simple task with us. Maybe the admin code will not be needed.

    Thank you

    #21151
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I think this documentation article will give you the answer: Restricting results to certain categories

    I hope this helps!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.