WordPress.org

Support

Support » Themes and Templates » Loading child pages into parent page

Loading child pages into parent page

  • mortalwombat
    Member

    @mortalwombat

    I am building a theme for a wedding photographer and need a little help in the best way to go about working up their layout for the pages

    Let me first explain their sitemap, which will explain what I am trying to do. They want 3 major sections, plus the blog. Each section has similar content, but some parts will be changed. The sitemap looks like this:

    Home (Pick section)
    – Weddings
    – About
    – Portfolio
    – Products
    – Contact
    – Families
    – About
    – Portfolio
    – Products
    – Contact
    – Seniors
    – About
    – Portfolio
    – Products
    – Contact
    – Blog

    (parent pages are in bold)

    So the child pages, even though they are named the same, will have unique content to match the section name. Here’s where my problem comes in: Each section will display as a single page, but should be individual pages in the control panel. That means I need to create a page (Weddings, for example) that will load all of it’s children pages, creating a long scrolling page of seperate sections for About, Portfolio, Product, and Contacts.

    What is the best way to go about this? I would love to use parent/child pages in the control panel, and have the code call them in order. That way they can add/remove sections as they see fit. Also, I would prefer not to use a plugin, if possible, so the layout won’t break if there is an update that fails.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Loading child pages into parent page’ is closed to new replies.