This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Restrict search results to a specific Post category

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21150
    gluczglucz
    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:

    Cégajánló


    (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 MarcinkoErnest Marcinko
    Keymaster

    Hi!

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

    I hope this helps!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.