• I want a static home page and a news page with the posts. I have added the pages and changed the Settings > Reading > Front Page Display.

    However, the home page displays the posts and so does the news page. I can’t get the home page to display!

    Here is my site:
    https://staticprogress.com/jon-test/static-progress/

    I have removed all the other pages I had, I removed all plugins and I changed my theme back to the original (Twenty Ten 1.1).

    Please could someone point me in the right direction.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Did you create a template for a static page and assign it to the page?

    Thread Starter GregWilkinson

    (@gregwilkinson)

    I didn’t create a template but I have been installing lots of themes which may have.

    Are you saying I need to create a template or is having the template causing the problem?

    Thanks for your reply vtxyzzy.

    WordPress will search for a template to display a static front page according to a Template Hierarchy. The order is:

    1.custom template – Where custom template is the Page Template assigned to the Page.
    2.page-{slug}.php – If the page slug is recent-news, WordPress will look to use page-recent-news.php
    3.page-{id}.php – If the page ID is 6, WordPress will look to use page-6.php
    4.page.php
    5.index.php

    So, if none of the first 4 exist, index.php will be used. That will show the same posts as the news page.

    You must create a custom template and assign it to the static page if you want to show something different.

    Thread Starter GregWilkinson

    (@gregwilkinson)

    Sorry, you lost me. Plus I don’t know how to create a custom template. I am still new to wordpress.

    All I want is a static home page and a news page with posts. Surely all I should have to do to accomplish this is have ‘Home’ as my Front Page and ‘News’ as my Posts Page on my Reading Settings.

    In messing around with these settings I noticed that if I remove the Front Page, then Home shows up twice. One displaying the post and one displaying the static page.

    A static front page uses a custom template and you must code it to display the content that you want. If you cannot code a template, and your theme does not provide one, then a static home page will not work for you.

    Thread Starter GregWilkinson

    (@gregwilkinson)

    This is news to me! All the help I’ve read says you simple need to change the Reading Settings. But there also seem to be allot of people struggling with this so I’m guessing WP is a little funky in this area.

    Do you know of a theme that has such a template? All the themes I’ve tried have given the same result.

    OK, I am confused. I took a look at the site you linked to in your original post. It used the theme ‘omniblock’. I installed that theme in my test site and selected a static front page with the default template. It showed the content of the page that I chose as static. Is that not what you are seeing?

    Thread Starter GregWilkinson

    (@gregwilkinson)

    That is the same setup I have but I don’t see the static home page!?!

    My static Home page should be at:
    https://staticprogress.com/jon-test/static-progress/home

    But somehow it gets redirected to https://staticprogress.com/jon-test/static-progress/ which displays the posts.

    If the Omniblock theme is working for you, then it means its not a theme issue. Where else could the problem be?

    Let me see if I know where you are:

    • You created a Page (not a post) called ‘Home’ and assigned it the default template.
    • In Settings->Reading, you set ‘Front page displays:’ to ‘A static page’, and Selected ‘Home’.

    If all that is correct, I am not sure where the problem lies.

    One thing, enter a second Post so the blog page will show two posts.

    If you are willing, set up a temporary user as an admin and mail me the user id and password to mac =at= mcdspot =dot= com and I will take a look.

    Thread Starter GregWilkinson

    (@gregwilkinson)

    Yes, that is my setup.

    I added a second post, so maybe its a bit clearer now. If you don’t have any more ideas I might just wipe everything and start over.

    Thanks again for your help!

    One other thing to try: set your permalinks to Default to see if that changes anything. Admin->Settings->Permalinks

    Thread Starter GregWilkinson

    (@gregwilkinson)

    I changed the Permalinks back to Default but its still the same result.

    Well, I’m out of ideas.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Static front page not displaying correctly’ is closed to new replies.