Using Grandparent Page Name to Query Post
-
This is a fairly complicated question and I am a beginner so I hope I am clear.
I am developing a website using WP as a CMS. It is a housing website and each community page needs to list listings for houses within that community. The client needs the ability to add communities (pages) and house listings (posts).
Therefore, each community (page) that is created needs to have a query in it that pulls only those house listings (posts) that belong to that community. What is the best way to do this seeing as I don’t know the page IDs or category IDs of the pages or posts the client will be creating?
Hope this makes sense. Thanks in advance for any help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using Grandparent Page Name to Query Post’ is closed to new replies.