Filter results by parent page

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

 
Participant
2 years ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #25267

    Participant

    Hey,
    is it possible to only search in pages that have a specific parent page?

    Regards,
    Florian Walther

    #25271

    Hi,

    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 :)


    #25273

    Participant

    Awesome, thank you very much ?

    #25274
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #25287

    Participant

    Sorry for coming back to this topic. Is it possible to also include all child pages down the hierarchy tree?

    #25288

    I’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.
    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #25292

    Participant

    Ok, not a big deal! Thanks for your efforts! I appreciate it!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.