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 trialMarcus Marcial
1,886 PointsNew Content Type for Blog Posts
I modified my single.php file for add some special features and extra functionality to the "Post" content type.
I have now run into an issue, as some of my contributors would like to create a plain blog post, but without all of the features I added with the "Post" content type.
Is there a way I can add the "Blog Post" content type so contributors can create posts, but not using the traditional Post content type which has been modified?
3 Answers
Joakim Bergman
14,501 PointsYou could make a cutom post type for the special features and keep the original post type as is. Here's a link to Wordpress codex post types page: http://codex.wordpress.org/Post_Types You will find the information about how to make custom post types there.
Marcus Marcial
1,886 PointsDo you know if there a plugin that can easily and simply add a content type "Blog" or "Blog Post" without coding?
Matt Campbell
9,767 PointsHi Marcus Marcial I don't know any off the top of my head but just Google custom post type plugin wordpress and you'll find one.
The other option is to take advantage of the template hierarchy. Review the template hierarchy on the codex to find out more.
abdulaziz alrashid
Courses Plus Student 461 Pointsabdulaziz alrashid
Courses Plus Student 461 PointsHello Sir i was this one to help your code and you can generate your customs code of your posts please this web-site link http://generatewp.com thanks you abdulaziz alrashid