Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Filter results by parent page
This topic contains 6 replies, has 2 voices, and was last updated by Florian94 3 years, 4 months ago.
- AuthorPosts
- January 14, 2020 at 12:51 pm #25267
Hey,
is it possible to only search in pages that have a specific parent page?Regards,
Florian WaltherJanuary 14, 2020 at 1:16 pm #25271Hi,
Yes, but a small custom code snippet is needed for it. In this tutorial you should find all the information needed: Limiting results to a specific post parent
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 14, 2020 at 1:27 pm #25273Awesome, thank you very much ?
January 14, 2020 at 1:29 pm #25274You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 14, 2020 at 11:30 pm #25287Sorry for coming back to this topic. Is it possible to also include all child pages down the hierarchy tree?
January 15, 2020 at 10:04 am #25288I’m afraid that is not possible, only by including all of the page IDs, that act as parents – because there is no direct connection between them.
Best,
I tried to look up the WordPress documentation, as well as StackOverflow for possible solutions, but there does not seem to be a way to restrict a query to all descendants.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 15, 2020 at 11:06 am #25292Ok, not a big deal! Thanks for your efforts! I appreciate it!
- AuthorPosts
You must be logged in to reply to this topic.