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

guarlonmirka
guarlonmirka
10,192 Points

the three files :art.php, page-art.php, single-art.php,

I a really confused with this and thanks God I am not the only one, I understood that these file could be downloaded as it is provided in the video. my question is let say that you are creating your own website custom post and fields, DOES these important files are generated automatically by the plugins/WP or you have to edit the files provided by ZAC Thanks

3 Answers

Martin La Touche
Martin La Touche
1,709 Points

I had exactly the same question as it is not made clear, in the video, how these files are originated. If there is a suitable plugin I'd be keen to know as well otherwise this exercise seems to be something only someone with a high level knowledge of coding could do successfully.

Hi,

If you are creating your own theme you will need to create the files yourself (unless you can find a plugin which will do it for you). Duplicating Zac's files and amending the names to match your custom post type is an option but you will need to remember to amend the content.

Hope that helps :)

-Rich

guarlonmirka
guarlonmirka
10,192 Points

Thanks for your Reply Rich. So if I understood, most developers using WP need to amend these files to match their custom post Type and Fields? Can you recommend any plugin to do this by any chance? Thanks