This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 3 years, 4 months ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
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 3 years, 4 months ago.
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?
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,You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |