WordPress.org

Plugin Directory

List More Custom Field Names

Allows for more existing custom field names to be listed in the dropdown selection field when writing a post.

What is the default number of custom field names/keys that WordPress lists in the admin when writing/editing pages and posts?

WordPress only lists up to 30.

How many custom field names/keys does this plugin list in the admin when writing/editing pages and posts?

By default, this plugin lists up to 200. You can customize this value.

How can I customize the default number of custom field name/keys listed in the admin when writing/editing pages and posts?

There are two ways you can customize this value (in both examples, change 100 to the number you'd like to use):

  1. In your wp-config.php file (in the root directory of your blog), add the following line of code (making sure it is within the opening <?php and closing ?> PHP tags):

    define( 'CUSTOM_FIELD_NAMES_LIMIT', 100 );

  2. (recommended) Somewhere, most likely in your active theme's functions.php file, hook the 'c2c_list_more_custom_field_names' filter and return the number you'd like:

    add_filter( 'c2c_list_more_custom_field_names', create_function( '$limit', 'return 100;' ) );

Does this plugin include unit tests?

Yes.

Requires: 2.6 or higher
Compatible up to: 4.1.5
Last Updated: 2015-2-12
Active Installs: 300+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2
100,1,1
100,1,1
100,1,1
100,1,1