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 trialMike Davidson
8,229 PointsCustom Post Type Name
Hi, I noticed on the tutorial that the custom post type Testimonial now has the option to Add New Testimonial rather than the default Add New Project. Can anyone advise how to make this change? Thanks. Mike
2 Answers
Chris Shaw
26,676 PointsHi Mike,
In the labels
array set your add_new_item
value to Add New Project and you're done, for reference see.
http://codex.wordpress.org/Function_Reference/register_post_type#Arguments
Mike Davidson
8,229 PointsHi Chris,
Thanks for your help on this. I read the codex but I am not sure which .php file I can find the add_new_item value. I am beginner so apoloigies if I am asking really basic questions but I would be very grateful if you could point me in the right direction.
Thanks again
Mike