Support » Themes and Templates » Blog posts not showing

  • Hi everyone!

    I have converted a php website to wordpress and am having no end of trouble with the blog page. I set up a page called ‘blog’ and set that to be my blog page in reading settings but no posts show up (there are two published posts) at all. I know wordpress uses the index.php to show posts and I have checked the loop inside this file and all looks good.

    It seems as if it is picking up the page template rather than the index template?

    Also, in page attributes there is no option to select a template i.e. default for blog posts.

    This is the first time I have converted a php site to wordpress so I guess I’ve missed something… but what? I followed instructions at the link below:

    The site I am working on is

    Any help would be appreciated!
    Thanks in advance.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Couple of things:

    if this is using single.php, then this is also not showing your post data, so check your tag usage and loop again

    Next, try viewing the category archive page by going to Posts > Categories and then clicking View under the Category Name containing your posts



    Forum Moderator

    check that there is no home.php in your theme;

    what is the exact code of index.php?
    please use the pastebin

    Yes I am using single.php here is the code:
    <script src=””></script>

    I also checked category archive and no posts there.

    There is no home.php in the theme folder, I am using index.php for the blog and page.php for static pages. index.php code below:
    <script src=”″></script>

    This is the first time I’ve converted a pure php template to wordpress so I guess I am missing something fundamental?

    Thanks for the help so far guys!

    Sorry guys i forgot to use the code tags 🙁

    <script src=""></script>
    <script src=""></script>

    OK, what does the content of content-page.php and content-post.php look like?


    I don’t actually have any of those files in my theme folder???

    I did say I was new to this 🙂


    Ok, well both of the pages that you pasted into pastebin reference these files.
    So the fact they don’t exist, could explain why nothing appears.

    On line 14 of single.php, can you change it to this

    // Start the Loop.
    while ( have_posts() ) : the_post();
    echo ‘<h1>’.get_the_title().'</h1>’;

    Does your blog title start to appear now?

    Ok I still don’t see anything on the blog page but when I preview any post I see the post title… getting there slowly!

    Great, so start inserting the necessary post tags (the_content, the_title, the_time etc.) in and you should start making headway.

    Good luck

    Ok your suggestions are working but I only see the title, content and anything else I add to single.php in the post preview. I see nothing on the main blog page?

    Thanks for your help so far – I owe you a beer 🙂


    I’m still confused why I am not seeing posts in the blog post page but see them when in preview mode.

    Sorry to be a pain but as I say, I’m new at this and hopefully once I get this fixed I’ll be able to do further conversions without getting stuck 🙁

    Thanks again.

    I can see it (albeit hidden behind your logo)

    Yep can see that thanks! The thing is, I still don’t see any posts on the main blog page i.e. here

    How do i get the posts feed to display on this page?

    Again, thanks for your help so far!

    Remind me which template is running on that page again?

    I think it’ll either be index.php or category.php or archive.php

    You’ll want to review each of those to ensure they’re not making calls to files that dont exist and therefore you’ll want to edit the loop to include the tags as you need them

    I’m using index.php for this page. Code below:

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Blog posts not showing’ is closed to new replies.