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

PHP One Page WordPress Site

Adam Baldwin
Adam Baldwin
1,971 Points

the query isn't working for me. Just getting a blank page. Everything was ok until that point. Any suggestions?

I've got a local site as in the video. I've followed the steps exactly. Everything has been wonderful up until the wp query. i downloaded the files and I copy and pasted the query into my "my-test-site.php" file and after refreshing my static page in wp, i'm getting a blank page. No content at all. Any suggestions as to what could have went wrong?

Adam Baldwin
Adam Baldwin
1,971 Points

So the theme downloaded from Underscores doesn't include a content-page.php file so i had to download the one from the video and copy and paste it into my theme's folder. Content is now showing on the static page. Thanks.

Nick Berry
Nick Berry
12,181 Points

Adam, thank you for posting the solution! I have been going crazy trying to figure out what I was doing wrong.

5 Answers

Chris Kosednar
Chris Kosednar
4,541 Points

yeah, thanks adam. HEY MODERATORS! you guys should do an edit to the voice over of the video to let folks know!

Thanks for the solution! :pray: Yes they should really change the video or add a text edit!

Jonathan Whalen
Jonathan Whalen
7,201 Points

there is a content-page.php included in the Underscores download package, but its inside the template-parts folder within the theme folder, I got kinda frustrated with this, but looking at the questions other students have had would have been helpful earlier, lesson learned

Thank you for the help! Agree that the admins need to address this either in the video or the materials somewhere.