Home / custom field / Increase number of custom fields
  • How to Increase number of custom fields

    no thumbnail sorry: Increase number of custom fields

    By default wordpress limits you to 30 custom fields this will allow you to Increase default number of custom fields. This example is set to 60 custom field limits.

    ( click code to copy )

    wordpress snippet : PHP

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

    ( WordPress codex functions, hooks, in this snippet. )

    postmeta_form_limit, add_filter,
  • Are there any downsides to having 60, 100, or 1000 custom fields? Why did WP set the default┬álimit to 30?
    Where do you post this code?

    • I would guess that this would be a performance issue, just add this snippet to the functions.php