{"id":5689,"date":"2009-06-30T18:00:17","date_gmt":"2009-06-30T18:00:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/list-more-custom-field-names\/"},"modified":"2025-04-17T20:27:51","modified_gmt":"2025-04-17T20:27:51","slug":"list-more-custom-field-names","status":"publish","type":"plugin","link":"https:\/\/os.wordpress.org\/plugins\/list-more-custom-field-names\/","author":3606,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.1","stable_tag":"1.4.1","tested":"6.8.5","requires":"2.6","requires_php":"","requires_plugins":null,"header_name":"List More Custom Field Names","header_author":"Scott Reilly","header_description":"","assets_banners_color":"0074a2","last_updated":"2025-04-17 20:27:51","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522","header_plugin_uri":"https:\/\/coffee2code.com\/wp-plugins\/list-more-custom-field-names\/","header_author_uri":"https:\/\/coffee2code.com\/","rating":5,"author_block_rating":0,"active_installs":70,"downloads":9452,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"coffee2code","date":"2009-06-30 18:00:17"},"1.1":{"tag":"1.1","author":"coffee2code","date":"2009-06-30 18:03:27"},"1.1.1":{"tag":"1.1.1","author":"coffee2code","date":"2010-01-05 04:56:37"},"1.2":{"tag":"1.2","author":"coffee2code","date":"2010-08-29 06:57:54"},"1.2.1":{"tag":"1.2.1","author":"coffee2code","date":"2011-02-12 16:13:17"},"1.2.2":{"tag":"1.2.2","author":"coffee2code","date":"2011-07-15 17:14:38"},"1.2.3":{"tag":"1.2.3","author":"coffee2code","date":"2011-11-21 05:10:39"},"1.2.4":{"tag":"1.2.4","author":"coffee2code","date":"2012-06-04 05:22:52"},"1.2.5":{"tag":"1.2.5","author":"coffee2code","date":"2012-12-09 08:34:11"},"1.2.6":{"tag":"1.2.6","author":"coffee2code","date":"2014-01-22 09:25:19"},"1.2.7":{"tag":"1.2.7","author":"coffee2code","date":"2014-08-26 05:47:54"},"1.2.8":{"tag":"1.2.8","author":"coffee2code","date":"2015-02-12 06:59:48"},"1.2.9":{"tag":"1.2.9","author":"coffee2code","date":"2015-08-15 06:07:08"},"1.3":{"tag":"1.3","author":"coffee2code","date":"2016-04-14 07:23:31"},"1.3.1":{"tag":"1.3.1","author":"coffee2code","date":"2017-02-08 06:54:14"},"1.3.2":{"tag":"1.3.2","author":"coffee2code","date":"2018-05-26 08:37:56"},"1.3.3":{"tag":"1.3.3","author":"coffee2code","date":"2019-04-01 17:38:45"},"1.3.4":{"tag":"1.3.4","author":"coffee2code","date":"2019-11-24 07:25:36"},"1.3.5":{"tag":"1.3.5","author":"coffee2code","date":"2020-05-03 06:58:48"},"1.3.6":{"tag":"1.3.6","author":"coffee2code","date":"2020-08-22 08:50:37"},"1.3.7":{"tag":"1.3.7","author":"coffee2code","date":"2021-04-10 09:19:38"},"1.3.8":{"tag":"1.3.8","author":"coffee2code","date":"2021-09-18 08:27:52"},"1.3.9":{"tag":"1.3.9","author":"coffee2code","date":"2023-08-15 23:23:37"},"1.4":{"tag":"1.4","author":"coffee2code","date":"2024-08-20 19:34:55"},"1.4.1":{"tag":"1.4.1","author":"coffee2code","date":"2025-04-17 20:27:51"}},"upgrade_notice":{"1.4.1":"<p>Trivial update: noted compatibility through WP 6.8+ and PHP 8.3+, and updated copyright date (2025)<\/p>","1.4":"<p>Minor update: added second argument to &#039;c2c_list_more_custom_field_names&#039; filter, noted compatibility through WP 6.6+, removed unit tests from release packaging, and updated copyright date (2024)<\/p>","1.3.9":"<p>Trivial update: noted compatibility through WP 6.3+, updated unit tests to run against latest WordPress, and updated copyright date (2023)<\/p>","1.3.8":"<p>Trivial update: noted compatibility through WP 5.8+ and minor reorganization and tweaks to unit tests<\/p>","1.3.7":"<p>Trivial update: noted compatibility through WP 5.7+ and updated copyright date (2021)<\/p>","1.3.6":"<p>Trivial update: Restructured unit test file structure, added a TODO.md file, and noted compatibility through WP 5.5+.<\/p>","1.3.5":"<p>Trivial update: Updated a few URLs to be HTTPS and noted compatibility through WP 5.4+.<\/p>","1.3.4":"<p>Trivial update: modernized unit tests, created CHANGELOG.md to store historical changelog outside of readme.txt, noted compatibility through WP 5.3+, and updated copyright date (2020)<\/p>","1.3.3":"<p>Trivial update: noted lack of benefit for users using block editor, noted compatibility through WP 5.1+. and updated copyright date (2019)<\/p>","1.3.2":"<p>Trivial update: added README.md, noted compatibility through WP 4.9+. and updated copyright date (2018)<\/p>","1.3.1":"<p>Trivial update: tweaked readme, changed unit test bootstrap, noted compatibility through WP 4.7+, and updated copyright date<\/p>","1.3":"<p>Minor update: only use non-false values for the constant; noted compatibility through WP 4.4+; updated copyright date<\/p>","1.2.9":"<p>Trivial update: noted compatibility through WP 4.3+<\/p>","1.2.8":"<p>Trivial update: noted compatibility through WP 4.1+ and updated copyright date<\/p>","1.2.7":"<p>Trivial update: noted compatibility through WP 4.0+; added plugin icon.<\/p>","1.2.6":"<p>Trivial update: added unit tests; noted compatibility through WP 3.8+<\/p>","1.2.5":"<p>Trivial update: noted compatibility through WP 3.5+<\/p>","1.2.4":"<p>Trivial update: noted compatibility through WP 3.4+; explicitly stated license<\/p>","1.2.3":"<p>Trivial update: noted compatibility through WP 3.3+<\/p>","1.2.2":"<p>Trivial update: noted compatibility through WP 3.2+<\/p>","1.2.1":"<p>Trivial update: noted compatibility through WP 3.1+ and updated copyright date<\/p>","1.2":"<p>Minor update. Highlights: added filter to customize number of custom field names to list; moved functionality out of anonymous function and into dedicated function; verified WP 3.0 compatibility.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":4},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":972944,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":824206,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.1.1","1.2","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.2.9","1.3","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.3.9","1.4","1.4.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,2010,2239,683,86],"plugin_category":[],"plugin_contributors":[78189],"plugin_business_model":[],"class_list":["post-5689","plugin","type-plugin","status-publish","hentry","plugin_tags-admin","plugin_tags-custom-fields","plugin_tags-edit","plugin_tags-meta","plugin_tags-post","plugin_contributors-coffee2code","plugin_committers-coffee2code"],"banners":{"banner":"https:\/\/ps.w.org\/list-more-custom-field-names\/assets\/banner-772x250.png?rev=824206","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/list-more-custom-field-names\/assets\/icon-128x128.png?rev=972944","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>By default, WordPress only allows 30 custom field names\/keys to be listed in the dropdown selection 'Name' field when writing a post or page. If you, or the plugins you use, make use of a lot of custom field key names, you may surpass the default limit resulting in some custom field keys not being listed. This may force post authors to manually type in custom field key names if they aren't listed, which increases the chances for naming errors (typos, or not using the precise key name that is needed). This may also cause some authors concern wondering where previously used custom field keys have gone since they aren't listed.<\/p>\n\n<p>This plugin increases the limit to 200 custom field key names.<\/p>\n\n<p>There is no settings page to customize the default value. If you'd like to list some number of custom field key names other than 200 (say, for example, 100), you can do so in either of two ways:<\/p>\n\n<ol>\n<li>By editing your wp-config.php file and at the end adding a line such as:\ndefine( 'CUSTOM_FIELD_NAMES_LIMIT', 100 );\n<em>-or-<\/em><\/li>\n<li>Somewhere -- ideally in a mu-plugin or site-specific plugin, or less ideally your active theme's functions.php file -- hook the 'c2c_list_more_custom_field_names' filter and return the number you'd like to use:\nadd_filter( 'c2c_list_more_custom_field_names', function ( $limist ) { return 100; } );<\/li>\n<\/ol>\n\n<p><em>Note:<\/em> This plugin has no effect for users who make use of the block editor (aka Gutenberg) introduced in WordPress v5.0 because that editor does not directly expose custom fields in the interface.<\/p>\n\n<p>Links: <a href=\"https:\/\/coffee2code.com\/wp-plugins\/list-more-custom-field-names\/\">Plugin Homepage<\/a> | <a href=\"https:\/\/wordpress.org\/plugins\/list-more-custom-field-names\/\">Plugin Directory Page<\/a> | <a href=\"https:\/\/github.com\/coffee2code\/list-more-custom-field-names\/\">GitHub<\/a> | <a href=\"https:\/\/coffee2code.com\">Author Homepage<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install via the built-in WordPress plugin installer. Or download and unzip <code>list-more-custom-field-names.zip<\/code> inside the plugins directory for your site (typically <code>wp-content\/plugins\/<\/code>)<\/li>\n<li>Activate the plugin through the 'Plugins' admin menu in WordPress<\/li>\n<li>(Optional) In wp-config.php, customize the number of custom fields you want shown. The default of 200 can be changed by adding a line like:\ndefine( 'CUSTOM_FIELD_NAMES_LIMIT', 100 );<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20is%20the%20default%20number%20of%20custom%20field%20names%2Fkeys%20that%20wordpress%20lists%20in%20the%20admin%20when%20writing%2Fediting%20pages%20and%20posts%3F'><h3>What is the default number of custom field names\/keys that WordPress lists in the admin when writing\/editing pages and posts?<\/h3><\/dt>\n<dd><p>WordPress only lists up to 30.<\/p><\/dd>\n<dt id='how%20many%20custom%20field%20names%2Fkeys%20does%20this%20plugin%20list%20in%20the%20admin%20when%20writing%2Fediting%20pages%20and%20posts%3F'><h3>How many custom field names\/keys does this plugin list in the admin when writing\/editing pages and posts?<\/h3><\/dt>\n<dd><p>By default, this plugin lists up to 200. You can customize this value.<\/p><\/dd>\n<dt id='how%20can%20i%20customize%20the%20default%20number%20of%20custom%20field%20name%2Fkeys%20listed%20in%20the%20admin%20when%20writing%2Fediting%20pages%20and%20posts%3F'><h3>How can I customize the default number of custom field name\/keys listed in the admin when writing\/editing pages and posts?<\/h3><\/dt>\n<dd><p>There are two ways you can customize this value (in both examples, change 100 to the number you'd like to use):<\/p>\n\n<ol>\n<li><p>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 <code>&lt;?php<\/code> and closing <code>?&gt;<\/code> PHP tags):<\/p>\n\n<pre><code>define( 'CUSTOM_FIELD_NAMES_LIMIT', 100 );\n<\/code><\/pre><\/li>\n<li><p>Somewhere -- ideally in a mu-plugin or site-specific plugin, or less ideally your active theme's functions.php file -- hook the 'c2c_list_more_custom_field_names' filter and return the number you'd like:<\/p>\n\n<pre><code>add_filter( 'c2c_list_more_custom_field_names', function ( $limit ) { return 100; } );\n<\/code><\/pre><\/li>\n<\/ol><\/dd>\n<dt id='why%20don%27t%20i%20see%20form%20fields%20for%20adding%2Fediting%20custom%20fields%20for%20a%20post%2C%20as%20mentioned%20by%20documentation%20for%20this%20plugin%3F'><h3>Why don't I see form fields for adding\/editing custom fields for a post, as mentioned by documentation for this plugin?<\/h3><\/dt>\n<dd><p>This plugin has no effect for users who make use of the block editor (aka Gutenberg) introduced in WordPress v5.0 because that editor does not directly expose custom fields in the interface. The plugin is still beneficial for users making use of the classic editor.<\/p><\/dd>\n<dt id='does%20this%20plugin%20have%20unit%20tests%3F'><h3>Does this plugin have unit tests?<\/h3><\/dt>\n<dd><p>Yes. The tests are not packaged in the release .zip file or included in plugins.svn.wordpress.org, but can be found in the <a href=\"https:\/\/github.com\/coffee2code\/list-more-custom-field-names\/\">plugin's GitHub repository<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4.1 (2025-04-17)<\/h4>\n\n<ul>\n<li>Change: Note compatibility through WP 6.8+<\/li>\n<li>Change: Note compatibility through PHP 8.3+<\/li>\n<li>Change: Update copyright date (2025)<\/li>\n<\/ul>\n\n<h4>1.4 (2024-08-20)<\/h4>\n\n<ul>\n<li>New: Add second argument to 'c2c_list_more_custom_field_names' for the preexisting limit<\/li>\n<li>Change: Note compatibility through WP 6.6+<\/li>\n<li>Change: Update copyright date (2024)<\/li>\n<li>Change: Reduce number of 'Tags' from <code>readme.txt<\/code><\/li>\n<li>Change: Remove development and testing-related files from release packaging<\/li>\n<li>Unit tests:\n\n<ul>\n<li>Hardening: Prevent direct web access to <code>bootstrap.php<\/code><\/li>\n<li>Change: In bootstrap, store path to plugin directory in a constant<\/li>\n<\/ul><\/li>\n<li>Change: Tweak formatting in <code>readme.txt<\/code> and <code>README.md<\/code><\/li>\n<\/ul>\n\n<h4>1.3.9 (2023-06-06)<\/h4>\n\n<ul>\n<li>Change: Note compatibility through WP 6.3+<\/li>\n<li>Change: Update copyright date (2023)<\/li>\n<li>New: Add <code>.gitignore<\/code> file<\/li>\n<li>Unit tests:\n\n<ul>\n<li>Allow tests to run against current versions of WordPress<\/li>\n<li>New: Add <code>composer.json<\/code> for PHPUnit Polyfill dependency<\/li>\n<li>Change: Prevent PHP warnings due to missing core-related generated files<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p><em>Full changelog is available in <a href=\"https:\/\/github.com\/coffee2code\/list-more-custom-field-names\/blob\/master\/CHANGELOG.md\">CHANGELOG.md<\/a>.<\/em><\/p>","raw_excerpt":"Allows for more existing custom field names to be listed in the dropdown selection field when writing a post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"author":[{"embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/users\/3606"}],"replies":[{"embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5689"}],"wp:attachment":[{"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5689"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5689"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5689"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5689"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5689"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/os.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}