• 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?

    See example

    Hope this makes sense. Thanks in advance for any help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Why not use categories for each of the communities instead of Pages?

    Thread Starter dltaylor

    (@dltaylor)

    Sorry to be a pain, but like I said I am a beginner. Can you explain how that would help? What’s the benefit of using a category over a page?

    Each community (category) will automatically have their own post listing (category) page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using Grandparent Page Name to Query Post’ is closed to new replies.