Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
    
Where are you looking for the edit link - admin area or frontend? –  SickHippie May 10 '12 at 21:10
    
The dashboard admin area. –  Justice Is Cheap May 10 '12 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 '12 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. –  Justice Is Cheap May 11 '12 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! –  Justice Is Cheap May 24 '12 at 14:23

3 Answers 3

up vote 1 down vote accepted

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.

share|improve this answer

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

 'menu_position' => 20,
share|improve this answer
    
Not so - in this instance, 'menu_position' => 20, simply means "Below Pages". –  SickHippie May 10 '12 at 21:08

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

'show_in_menu' => true,
share|improve this answer
    
Sorry, this didn't seem to work. –  Justice Is Cheap May 11 '12 at 0:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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