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.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityJust 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.
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.. :)
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.