increase default length of custom field dropdown

There’s a limit of 30 set in wp-admin/includes/template.php, however there is a filter hook postmeta_form_limit available if you wish to change it.

Add following code to theme’s function.php file.

add_filter( 'postmeta_form_limit' , 'customfield_limit_increase' );
function customfield_limit_increase( $limit ) {
	$limit = 100;
	return $limit;

Leave a Reply

Your email address will not be published. Required fields are marked *