WordPress WordPress Theme Development Adding a Blog to a WordPress Theme Setting up the Blog Homepage

Eduardo Daniel Brito Reyes
Eduardo Daniel Brito Reyes
7,032 Points

Blog page taking up the index.php template instead of the home.php.

I followed the video but the blog page is taking the index.php template, it is not displaying the sidebar. I made sure this was the case by adding text in the index.php and seeing it appear in the Blog - Posts page. The blog page doesn't even let me change it's template and I don't think this is the problem as, in the video, no template was set for the blog page. Just for confirmation the contact page which uses the left sidebar template does displays the correct styling with the sidebar and everything.

Thank you for any and all help.

1 Answer

Austin Whipple
Austin Whipple
28,189 Points

Very interesting. If home.php exists as a readable file, it should override index.php. That said, if there is a front-page.php file, it will override both. (Give this page of WordPress developer docs for more information on template hierarchy.)

Beyond that, I'd double check the file to make sure it exists on the server and has correct permissions set (so it is readable by the server/WordPress).