Search in only category

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24409
    aviazionecivile07
    aviazionecivile07
    Participant

    Good morning,
    I used your filter and would like to limit the search to a single category. Now instead when I search for something specifying in which category, in reality I search in all the posts. Furthermore, we set a custom field (dropdown) where the first element is not the first in the list (obtained with get_values) but a random value. The filter then constructed in this way does not extract the data related to the search in the category. Can you give us directions on how to proceed?

    You find attached the screenshot files.

    Attachments:
    You must be logged in to view attached files.
    #24411
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Thank you for all the details, it helps a lot.

    To search only a single category, this documentation will help you out.

    I also checked, and the reason why that specific value is selected is, that it has a double star “**” within it’s title, see the source here: https://i.imgur.com/qaPAAka.png
    The plugin uses that syntax to choose the selected item. Is it possible by any chance to remove that from the original, or is it required there in the airports title?

    Best,
    Ernest Marcinko

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


    #24417
    aviazionecivile07
    aviazionecivile07
    Participant

    Hi Ernest,
    thanks for the reply, you have been a great help!
    I solved with the custom field.

    For the search in a single category where I find the related documentation?

    Thank you, I await your reply.

    Best regards

    #24418
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Oh sorry, I forgot to link it, here it is: https://documentation.ajaxsearchpro.com/advanced-options/excluding-and-including-results/include-by-categories-or-terms

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.