Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Limiting search to a single page
This topic contains 4 replies, has 2 voices, and was last updated by martinrtr16 3 years, 2 months ago.
- AuthorPosts
- April 8, 2020 at 5:26 pm #26660
Hi – just bought Ajax search pro – it’s a thing of beauty and I’m just finding my way round all the brilliant customisations. One quick question. Is there any way to create a search instance that is limited to just one page?
Thanks
MartinApril 9, 2020 at 8:39 am #26662Hi Martin,
Thank you for your kind words!
Well, you can do that via custom code, but that would only return that one single page as result, and nothing else.
Best,
If you want to restrict the results to a number of pages/posts, I rather recommend using category/term or other restrictions.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 9, 2020 at 8:45 am #26663Hi – thanks for coming back to me.
A slight misundertanding. Language eh?!.
What I mean is; I would like is a search instance placed on a single page that only retunrs results for that page – in the same way as ctrl+F (cmd+F Mac) does?
April 9, 2020 at 9:26 am #26665Hi,
That is not possible unfortunately. The plugin can only return individual posts/CPT records from the database – thus that single page as a single result. Searching within pages that way is not possible.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 9, 2020 at 9:33 am #26666Ok thx
It’s always slightly frustrating that SO few people know about ctrl+f. I use it all the time!
- AuthorPosts
You must be logged in to reply to this topic.