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

wordpress custom post type

the current cpt ui menue for adding new post is different and updated from the video. it now says post type slug and has a description under saying "The post type name/slug. Used for various queries for post type content. Slugs should only contain alphanumeric, latin characters. Underscores should be used in place of spaces. Set "Custom Rewrite Slug" field to make slug use dashes for URLs." Then under is the Plural Label box to fill that says " Used for the post type admin menu item." Then under is the singular label area box that says" Used when a singular label is needed." Then under is the add post type button. i fill them out like in the video and it gives an error star by each box and at the top the box that appears to describe the error says"Please choose a different post type name. portfolio matches an existing page slug, which can cause conflicts. " can anyone help with the new way that this is supposed to be filled out?

1 Answer

Klaus Fischer
Klaus Fischer
833 Points

just use portfolio2 oder any other name for the slug and Portfolio and Portfolio Piece for the other two fields