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 How to Build a WordPress Theme WordPress Theme Functions Displaying Custom Posts and Fields in a Template

Where is Dr. Wattz?

Where are all the blog posts such as "Dr. Wattz" that are supposed to show up on the /work.php file? They show up in the videos, but not on my localhost site.

Were we supposed to create this content? Does it live in one of the project files?

Seems like a step was missed either by me or in the creation of this video.

4 Answers

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

In the last video of the content stage it goes over adding custom fields and instructs to add the portfolio content once you have it setup.

You can find the files in the project downloads on the video pages.

Kevin Korte
Kevin Korte
28,148 Points

Posts live in the database. To be honest, I have no idea if included in the project files is a database file. If it is, you'd have to import that database file into your local MySQL database.

If the database file wasn't included in the project files download, you'll have to create the posts yourself.

Maybe Zac Gordon can help.

Huh? OK, well there is a database but it was blank. We set it up in the video. But we never added this content so it doesn't exist.

I am happy to add it into the database with PHPmyAdmin OR just add it in the admin area but I have no idea where.

Totally confused when there are missing steps in these videos and not sure why they are never corrected nor how anyone else proceeds with these videos without the steps being there. ?????????????????????????????


Kevin Korte
Kevin Korte
28,148 Points

Truthfully, my account is on pause, so I can't go back and watch the video.

Sometimes, videos have download files of the project, and possibly there could be a database file included in the download. I have no idea if this is the case though. If you had a database file, you could just import it into your WP database.

It's been many months since I did that lesson, so I can' tell you were the posts came from, I don't remember.

WP posts live in the WP_posts table.

I tagged Zac, but he didn't respond, so I'd suggest contacting help@teamtreehouse.com for further help, since I can't be more specific, nor do I have access to go back and review myself.