I'm using the following code to create two custom post types:

Pastebin Link

The Spotlight custom post type is giving me the edit/permalink to edit the post. However, the cooking video isn't. I've just copied the code from the Spotlights, changed the pertinent info for Cooking Videos so I don't get why it isn't working.

  • Where are you looking for the edit link - admin area or frontend?
    – SickHippie
    May 10, 2012 at 21:10
  • The dashboard admin area. May 10, 2012 at 23:07
  • I just put your code into my functions.php, and I get everything as expected - the permalink shows up as soon as a draft is saved, I can edit, etc. I ran into an issue like this, and tracked it down to Advanced Access Manager, so maybe turn off all your plugins and test from there?
    – SickHippie
    May 10, 2012 at 23:34
  • Thanks! I thought it was working previously and it didn't make sense that one was working and the other wasn't. On edit: I just tried turning off all plugins and that didn't make the permalink links appear. May 11, 2012 at 0:14
  • 1
    I found the problem with the help of one of our IT guys. It just so happens WP didn't like how I registered my post type (naming convention). I was using cookingVideo but once it was changed to all lower case in the function.php file and the DB, everything worked fine. Thanks for the help SickHippie! May 24, 2012 at 14:23

3 Answers 3


As I told SickHippie in the comment, this was a matter of the naming convention while registering the custom post type in the functions.php file. I used camel-case and the DB didn't like that. Once it was changed to all lower-case, it worked fine.


You've given both the same menu position, so you'll need to change one to something else.

 'menu_position' => 20,
  • Not so - in this instance, 'menu_position' => 20, simply means "Below Pages".
    – SickHippie
    May 10, 2012 at 21:08

Try this in the same array where you set public and menu position.

'show_in_menu' => true,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.