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

Embed Custom Fields in Post Types?

Is there a way to understand the process of embedding custom fields to post-types without using third party plugins such as Advance Custom Fields plugin? I'd like to have this functionality built in to my plugin.

For example, give a custom post type (let's say book or movie) a star rating (5 stars etc). This is to be set in the admin area - not the public facing side.

Any ideas?

2 Answers

For those interested, it seems that what I'm actually looking for are Meta Boxes.

Here's reference information from the Wordpress Codex: http://codex.wordpress.org/Function_Reference/add_meta_box

The example given on that page works straight out of the box.