Increase default number of custom fields

WordPress has a default number of 30 custom fields. In the following example we have increased the limit to 200.

Simply paste the following into your functions.php and away you go!

Code Snippet:

<?php
add_filter( 'postmeta_form_limit' , 'customfield_limit_increase' );
function customfield_limit_increase( $limit ) {
    $limit = 200;
    return $limit;
}
?>

Posted in Custom Fields