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 How to Make a Website with WordPress Custom Post Types and Fields in WordPress Custom Post Type Templates

Where did those php files just come from?? How am I supposed to get those?

He installed the custom post type plugin and custom field plugin - created a new post type and added fields. Now suddenly has 3 php files with no explanation as to where those came from and how to access them.

2 Answers

Clara Hembree
Clara Hembree
11,401 Points

I'm working on my live site. I'd like to know where to find the .php files rather than use the project files that accompany the video tutorial.

Oh boy, don't tell me the .php files are not created automatically. hmmm... I just went through the CPT UI instructions but now I'm stuck because I don't have the .php files for the "music" custom post type.

Would these be the instructions to go by? http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page


Are there project files to download? Check the first video for project files to download (sidebar on the right) and for every video after. Often times, teachers will provide new files for each video so it's important you keep an eye out for new source code to download.

I hope this helps!

Happy coding friend!