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 The single.php Page

nasser mohammed
nasser mohammed
13,160 Points

No thing changes after I added single.php file

Hi Zac. I have a problem Nothing changes after I added the single.php and the posts still depend on home.php file not on single.php file

Andrew McCormick
Andrew McCormick
17,730 Points

is this the chosen home page for the site or your index of blog posts?

nasser mohammed
nasser mohammed
13,160 Points

Thank you Andrew. I found the solution for the problem.

2 Answers

Hi,

This sounds as though you could be viewing the post listing page or have the home page set to display posts rather than a page. You can change the home page to view an individual page in the Settings.

wphierarchy.com is a great site to check which page should be used.

Hope that helps :)

-Rich

nasser mohammed
nasser mohammed
13,160 Points

Thank you Rich. No thing was appear because I was viewing all posts once. When I entered the single post I saw the changes

No problem. Glad you got it sorted :)

-Rich