3

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

6
  • 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) Apr 6, 2011 at 19:51
  • @wilwaldon Can you provide a screenshot so we can see what you're talking about?
    – EAMann
    Apr 6, 2011 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, 2011 at 19:54
  • @EAMann Added a screeny.
    – wilwaldon
    Apr 6, 2011 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, 2011 at 20:38

2 Answers 2

6

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.. :)

0
2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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