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.

Is there anyway to have custom menus that fill out automatically, specifically for custom post types?

You can do it for default pages but nothing else it seems...

For example you have a page which needs to list a range of projects in a navigation.

You could do it with a query for that specific custom post type so all new posts are added automatically but what about the wp_menu class's that are added?

So basically can you have a list navigation which populates automatically with the wp_menu classes e.g current-menu-item

Because having to add them in the menu area in the admin is a bit clunky.

This possible, or not yet?

share|improve this question
add comment

1 Answer

I'm not quite clear on what you're trying to do, but I'll just take a shot in the dark.

Try messing around with custom fields. You could have a custom field with a boolean value. Then in your template, you would check to see if the post has that value. So if that value returns true, have your template do whatever you're trying to do.

Not sure if this helps any, try clarifying a bit.

share|improve this answer
    
It looks to me that you are missing the shot... IMO, the first and penultimate paragraphs define the core of the question... –  brasofilo Jun 20 '12 at 4:54
    
Yes sorry, a custom menu that fills its self out automatically, so you have all the function of the custom menu but with any post type. It does it for pages automatically, if you click the little check box. –  user4630 Jun 20 '12 at 9:04
    
This is basically what i mean, but looks like its not doable :( premium.wpmudev.org/forums/topic/… –  user4630 Jun 20 '12 at 9:30
add comment

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.