WordPress.org

Ready to get started?Download WordPress

Forums

Changing the posts-page: loads the wrong page (13 posts)

  1. samq@labelmedia.co.uk
    Member
    Posted 3 years ago #

    Ok so I wanted my homepage to be static so I changed the reading settings. This worked fine and I wanted a new page called 'blog' to be my new posts page. I created the template and it was looking fine but then I changed the 'posts page' to 'blog' in the reading settings. When i now visit the 'blog' page it actually displays the homepage. I am relatively new to WordPress and I can't figure out why it would do this.

  2. Samuel B
    moderator
    Posted 3 years ago #

    # If you will not be using WordPress' blogging functionality, you can skip the second page; otherwise, title it "Blog" (or you could call it "News", "Articles", etc.). This page will be a place-holder for showing the Posts on your site.

    1. Do not use a custom Page template for this page!
    2. DO NOT add content to the Blog Page. Leave it blank. Any content here will be ignored -- only the Title is used.
    3. Publish the Page.

    reference
    http://codex.wordpress.org/Creating_a_Static_Front_Page

  3. samq@labelmedia.co.uk
    Member
    Posted 3 years ago #

    Hi thanks for the comment but it still didn't work. I kind of need it to work with my custom template to. It's weird, when I preview the page it displays correctly but when i go to the page itself it displays the homepage.

  4. Samuel B
    moderator
    Posted 3 years ago #

    will not work with a custom template

  5. samq@labelmedia.co.uk
    Member
    Posted 3 years ago #

    So if a blog isn't on the homepage of your site you cant customize the appearance of it?

  6. Samuel B
    moderator
    Posted 3 years ago #

    So I can't have a blog in the style of the rest of my site if it isn't on the homepage?

    I don't understand the question.
    how would it not be in the style of the rest of your site?
    can you supply a link to what you're talking about?

  7. samq@labelmedia.co.uk
    Member
    Posted 3 years ago #

    Hi, sorry that might have sounded confusing, I'm a little confused myself. I have disabled the 'posts page' function in reading settings so you can actually see the blog page.

    http://www.pelicanfly.co.uk/blog

    Thanks very much for you help.

  8. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    If you use a static Page as your site's Front Page, and a static Page for your site's blog posts, if you want to modify the markup of the Page for your blog posts, use the template file home.php.

  9. samq@labelmedia.co.uk
    Member
    Posted 3 years ago #

    Is it possible to move the static pages from wordpress and place them in the route of my hosting? Thus keeping the home.php (blog) in wordpress and linking to it from my navigation? Or would home.php always load upon arrival to the site?

  10. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    Is it possible to move the static pages from wordpress and place them in the route of my hosting? Thus keeping the home.php (blog) in wordpress and linking to it from my navigation? Or would home.php always load upon arrival to the site?

    I think you're fundamentally misunderstanding how the WordPress templating system works.

    If you "move" the static Pages outside of WordPress, they're no longer part of WordPress. Of course, you can do that, but WordPress will no longer know about them, or be able to interact with them.

  11. samq@labelmedia.co.uk
    Member
    Posted 3 years ago #

    I think you're fundamentally misunderstanding how the WordPress templating system works.

    Theres every chance.

    To be honest there is very little interaction between them anyways. Initially I wanted to use WordPress as a CMS and a blogging platform. But if that is only possible by changing the structure of my site I'd rather keep the two functions separate. And plus it is almost as quick for me to edit and upload content in my static pages from coda as it is to go into wordpress and edit them in the html view which is what I would use.

    Does this make sense?

  12. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    To be honest there is very little interaction between them anyways. Initially I wanted to use WordPress as a CMS and a blogging platform. But if that is only possible by changing the structure of my site I'd rather keep the two functions separate. And plus it is almost as quick for me to edit and upload content in my static pages from coda as it is to go into wordpress and edit them in the html view which is what I would use.
    Does this make sense?

    Well, if you want to use WordPress as a CMS - that is, as the system to manage your content, then yes, you'll have to restructure a bit. WordPress can only know about content that is in its database.

    Really, it's all a matter of what works best for you.

    I took that route (WordPress only for my blog posts, and static HTML for everything else) for several years, before porting all of my static HTML content into WordPress. It took a while to port, but once done, I am so glad that I did, and I would never go back.

  13. samq@labelmedia.co.uk
    Member
    Posted 3 years ago #

    Thanks very much for advice, lots to consider

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags