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
Stanley Thijssen22,831 Points
I think you WordPress installation already has a page named portfolio. Thats why you can't create a custom post type with the name of portfolio. If you try to change it to a different name it should work.
Peter Simmons3,371 Points
I think its a new feature of the plugin custom post type ui that has been introduced since this video. Its not recommended to have custom post types the same as page names as it can cause weird behaviour. I have started to name all my custom post types like CPT_NAME now as there is never a risk a page will share that name and then you can rewrite the url slug later if needed.
Glenré Charl Labuschagné23,204 Points
Random work around: Delete the Portfolio page before following the video instructions. After completing the instructions, go back and add the Portfolio page & re-add your (deleted) Portfolio page to the Menu.