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 Custom Post Type Templates in WordPress Coding Your Own Custom Post Type Templates

Nathan LaBrake
Nathan LaBrake
24,088 Points

If I wanted to offer a theme to a customer, would those custom fields actually show up without the plugin installed?

To clarify: If I use this plugin to develop this theme, unless I install the plugin for the client, as well as update their databases with the custom fields, those fields would not show up.

I have used themes before in which the theme had its own custom fields. How would you do that?

1 Answer

Jacobus Hindson
Jacobus Hindson
14,429 Points

Hi Nathan,

Adding custom fields/post types is a little trickier to code into your template but it can be done.

If you are comfortable look into the part of the codex.