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.

Just like the title states. I've added around 20+ custom fields into my wordpress site and only around 10 are showing in the drop down.

The custom fields are all functioning fine on the site side, but they just aren't showing up in the drop down. enter image description here

share|improve this question
    
none of them happen to start with an underscore do they? Undercores at the beginning of a key makes it remain hidden from that interface (useful for custom meta boxes) –  Rev. Voodoo Apr 6 '11 at 19:51
    
@wilwaldon Can you provide a screenshot so we can see what you're talking about? –  EAMann Apr 6 '11 at 19:53
    
no underscores in the beginning, but there are underscores in the names. Example: left_title . Would that do the same thing? –  wilwaldon Apr 6 '11 at 19:54
    
@EAMann Added a screeny. –  wilwaldon Apr 6 '11 at 20:28
    
OK, now which dropdown are they not showing up in? You have far more than 10 in that dropdown ... is that where they're missing or somewhere else? –  EAMann Apr 6 '11 at 20:38
show 1 more comment

2 Answers 2

up vote 4 down vote accepted

There's a limit set inside the function that lists the meta data.

http://core.trac.wordpress.org/browser/tags/3.1/wp-admin/includes/template.php#L512

Run a filter on postmeta_form_limit to increase to your desired value, eg.

add_filter( 'postmeta_form_limit', 'meta_limit_increase' );
function meta_limit_increase( $limit ) {
    return 50;
}

Hope that helps.. :)

share|improve this answer
    
Perfect solution. Thanks Mark! –  wilwaldon Apr 12 '11 at 13:30
    
You're welcome.. :) –  Mark Duncan Apr 12 '11 at 18:46
add comment

From the looks of things, you just have way too many custom fields. I would highly recommend creating a few custom meta boxes to handle them rather than relying entirely on the dropdown menu.

There are a few good tutorials out there, and whoever ends up maintaining the site will thank you for building a clean, easy-to-navigate UI.

share|improve this answer
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.