Limit search results to those found in comments.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Limit search results to those found in comments.

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25251
    spamis17
    spamis17
    Participant

    My client would like two search fields on the sidebar – one for the posts themselves and one limited to the comments. I can’t seem to find which settings to use to accomplish this and it may be that it can’t be done. Any advise?

    #25253
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Well, if you want two fields, then you should create two separate search bars, and configure one to search the posts, and the other one to search the comments only.

    Another possible solution could be to use content type filter, that is visible below the search bar, so the user can choose what to search, that looks something like this: https://i.imgur.com/qtqNS4Z.png
    For this feature, you can follow these steps:
    – Enable the search in posts and comments: https://i.imgur.com/mSDAWCI.png
    – Enable the filters box to be visible at all times: https://i.imgur.com/ZVtI8km.png
    – Use the content type filters: https://i.imgur.com/BJZ0ocg.png

    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.