• Resolved Code Junkie

    (@code-junkie)


    Hello,

    I’m working on a new portfolio site, and I’ve decided to build it in WordPress. My new site will be a scrolling single page portfolio. My single page site will sort of contain 3-6 pages within a single page. As such, my home page will essentially contain at least 3 sub pages within it’s initial loading html.

    You can see what I have in mind here:
    http://code-junkie.com/clients/codeJunkie/scrolling-5.jpg .

    What I would like to do for organization’s sake is to set each “page” up as a separate page in the CMS with it’s own template, then set the home page up to be it’s own page which loads all of the code (including everything in the individual template files) sequentially into the home page.

    Basically, I’d just like to be able to load the complete content of say, the “About” page template, content and all directly into another page (the “Site” or home page). Is there a way to do this?

    You can see my code the way I have it set up so far here:
    http://code-junkie.com/wp/ .

    Thanks for the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Code Junkie

    (@code-junkie)

    I’ve been playing with get_pages to try and make this work. Is get_posts a better solution? I thought that get_pages would be the right way to do it since I was trying to get pages and not posts. Also, will this allow me to include things from the post which aren’t post content but are rather PHP that I’ve coded into that specific post’s template?

    Is get_posts a better solution?

    It’s a better way of having a secondary Loop in your page. And despite its name, it will pull pages – not just posts.

    Also, will this allow me to include things from the post which aren’t post content but are rather PHP that I’ve coded into that specific post’s template?

    No. In fact, there isn’t any PHP code that will do this. Perhaps you need to look at using an iframe instead?

    Thread Starter Code Junkie

    (@code-junkie)

    Hmm well that probably means there’s no inherent WordPress code to do this. That shouldn’t surprise me since that’s not really how WordPress seems to be set up. I guess I’ll either use a PHP include to just pull the whole page in or place the extra code directly in the main page and then use get_posts to include page specific content.

    Thanks for the help! ^^

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to output a full page in another page’ is closed to new replies.