• mickdude2001

    (@mickdude2001)


    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:
    https://blog.spoongraphics.co.uk/tutorials/how-to-build-a-custom-wordpress-theme-from-scratch

    The site I am working on is https://webhosting4uk.co.uk/indianspiceschool/blog/

    Any help would be appreciated!
    Thanks in advance.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter mickdude2001

    (@mickdude2001)

    Also, in index.php there is a call for the header but the header isn’t showing either. Stumped…:(

    Thread Starter mickdude2001

    (@mickdude2001)

    Ok latest update:

    I changed the references to ‘content’ in index.php to ‘content-page’ and now we are in business with the blog page. The only other strange one is that the header is not displaying even though I call it at the top of index.php. Any ideas?

    Again, thanks for the pointers I really appreciate the help!

    Thread Starter mickdude2001

    (@mickdude2001)

    Ok guys I think i have cracked it now. I needed to detect if on the blog page and if so display a custom banner at the top. I ended up using this code

    All is resolved now so a big thank-you to those that came forward with suggestions.

    Thanks again!

    domokun

    (@domokun)

    Good work.

    Please mark this thread as [resolved]

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