How to modify the number of custom columns that have been added by WordPress
This article will explain in detail how to modify the number of custom columns that have been added by WordPress. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Sometimes we will add custom columns panel to select the added custom column name, but WordPress default only displays by alphabetical sort of the first 30 custom column names, beyond the do not show, when adding more custom columns, in the selection box will not be able to find want to add custom columns, can only add manually, very inconvenient, you can increase the number of display through the following code.
Just add the following code to the current theme function template functions.php.
Add_filter ('postmeta_form_limit',' customfield_limit_increase'); function customfield_limit_increase ($limit) {$limit = 100x return $limit;}
The number 100 is the number displayed, which can be adjusted appropriately.
This is the end of this article on "how to modify the number of custom columns that have been added by WordPress". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.