Search pages that are a child of the current page
I started this in a comment but thought I’d expand it for you because I do like the question 😉 I’d probably tackle this by adding a hidden field to the search form with the current page ID, and then using the pre_get_posts filter to modify the search query to only return pages with a … Read more