Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search Current Page
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years, 9 months ago.
- AuthorPosts
- December 13, 2016 at 2:59 pm #11258
I want to be able to only search the current page that the seach box is on not any of the other 70+ pages on the website. How do I do that?
December 13, 2016 at 5:13 pm #11261Hi,
In this case the plugin would only return one single result, the current page only – which I’m not sure if that’s what you need?
It’s not possible without a modification as in the ajax request the originating page ID is not sent. If this is what you want, let me know, and I will look up a possible modification for you.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 14, 2016 at 3:59 am #11271You cannot access this content.December 14, 2016 at 5:20 pm #11273Hi Justen,
When exluding bulk amounts of content, I usually I recommend excluding categories, but since these are pages, this is not an option. Also, if you don’t need post, then on the General Options -> Sources panel turn off the Search in Posts option: https://i.imgur.com/7PUeqlq.png
For the rest of the pages, there are two possibilities left:
1. To exclude the pages on the back-end on the Advanced Options -> Exclude results panel: https://i.imgur.com/45tcrK4.png2. Explicitly include only the required pages via a custom code: https://goo.gl/pEu890
I highly recommed the 1. solution if the number of pages excluded is lower than the remaining.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.