WordPress.org

Ready to get started?Download WordPress

Forums

Showing main blog posts on all pages (4 posts)

  1. cablebox
    Member
    Posted 6 years ago #

    hello

    I'm trying to create a site so that I've got the blog on the bottom of the page, and I can figure this out for the index. When I create more pages, they're treated like their own blogs, but really I just want another page to change the content on the top of my site, and I'd like to keep the blog at the bottom the same. How do i do this?

    Also, when I create more pages, am I going to need a template for each different page? They will all have the same layout, but the content on each page will be a little different.

  2. MichaelH
    Member
    Posted 6 years ago #

    Depending on the theme, Pages typically use a different template than index.php so you'll want to figure out what template your Pages are using then take the code from your index.php and put that in the appropriate Page template.

    Template Hierarchy
    Pages
    Stepping Into Templates
    The Loop
    Editing Files

  3. cablebox
    Member
    Posted 6 years ago #

    I created a template and put my page under it, and the template I had was everything in my index.php. The header and footer came out fine, and the other content, but the blog part was just empty (because I don't have any posts under this 'page') even though I had directly copied and pasted the index template to the page template.

  4. moshu
    Member
    Posted 6 years ago #

    You cannot have posts "under Pages". That's your main problem. Don't mix posts and Pages.
    Instead of thinking that you figured out the "how-to"... describe the end goal, WHAT do you want to achieve, and some good soul might tell you HOW.

Topic Closed

This topic has been closed to new replies.

About this Topic