Plugin Directory

List More Custom Field Names

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

Download Version 1.2.2

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. (recommented) 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;' ) );

Requires: 2.6 or higher
Compatible up to: 3.3.1
Last Updated: 2011-2-12 Downloads: 1,629

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(3 ratings)

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

Log in to vote.

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