Lego2012
12/13/2016 - 10:58 AM

Increase Custom Fields Dropdown Limit

Increase Custom Fields Dropdown Limit

<!-- For your functions.php file or custom plugin: -->

// Increase number of meta fields shown in dropdown
add_filter('postmeta_form_limit', 'customfield_limit_increase');
function customfield_limit_increase($limit) {
  $limit = 100;
  return $limit;
}

<!-- Otherwise, the dropdown for Custom Fields is capped at 30 (alphabetically).  -->