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 trialElena Paraschiv
9,938 PointsI ma getting this error: Please choose a different post type name...
When I follow the video instructions and try to create a custom post I am getting the error above How can I solve this ?
3 Answers
Stanley Thijssen
22,831 PointsHi Elena,
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 Simmons
3,371 PointsI 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 PointsRandom 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.
Mark Myers
7,378 PointsMark Myers
7,378 PointsThat is correct- just rename your Portfolio page to My Portfolio or something - NOTE that you will also have to change the permalink (page slug) so it reads /my-portfolio or whatever.