X

Increase default number of custom fields

WordPress default number of Custom Fields, 30, can easily be changed with this snippet.

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;
}
?>

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!