Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Which php. file we have to use for the blog?

Hey Zac. In your presentation "Setting the Blog..." You start saying that the file to help us to set up the "Blog" is single-portfolio.php then a jump cut (video-editing) and you say that the page-sidebar.php file will help us to create the "Blog". I assume that is the page-side.php file from where you continue working toward to have the finished theme. Just an observation.

Jason Brady
Jason Brady
17,372 Points

Nice catch... I was coming here to say the exact same thing.

4 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

For the blog you primarily use home.php for the blog landing page and then single.php for the individual blog post pages.

Yes, there is a bug in the video. You should open page-sidebar-left.php and save as home.php.

Ernest Guaimano
Ernest Guaimano
14,928 Points

Use the page-sidebar-left.php file as a starting point for your home.php file. This is what is used throughout the remainder of this tutorial section.

Jason Brady
Jason Brady
17,372 Points

The video starts by saying to open single-portfolio.php and do a file>save as home.php... then the video immediately says to use page-sidebar-left.php and do a file>save as home.php

The second entry (page-sidebar-left.php) is the correct template to start with. This was obviously not meant to make it to the live version.