Modify the number of custom columns added by WordPress

WordPress four eight hundred and two Reading mode

Sometimes we will select the name of the added custom column in the Add Custom Column panel, but WordPress only displays the first 30 custom column names sorted alphabetically by default, and those beyond will not be displayed. When there are many custom columns added, the custom column you want to add will not be found in the selection box, so you can only add them manually, which is inconvenient, The following code can be used to increase the number of displays.

 Modify the number of custom columns added by WordPress

Modify the number of custom columns added by WordPress

Add the following code to the current topic function template functions.php.

 add_filter( 'postmeta_form_limit' , 'customfield_limit_increase' ); function customfield_limit_increase( $limit ) { $limit = 100; return $limit; }

The number 100 is the number of displays, which can be adjusted appropriately.

The code originates from the network

 

Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!

 weinxin
My Wechat
WeChat copied
Copyright Notice
Please indicate the source and link of the original article reprinted on this site. Thank you for your cooperation!
five hundred and ninety-eight million eight hundred and forty-five thousand and six
 
 Robin
five hundred and ninety-eight million eight hundred and forty-five thousand and six
Comments four    Visitors four
    •  Xiao Xiao Wu Ye
      Xiao Xiao Wu Ye two

      Thanks for sharing

      •  The Bodhi son
        The Bodhi son zero

        Thank you Brother Bird

        •  Old Events in the South of the City
          Old Events in the South of the City zero

          Very rich content

          •  Self study Guide
            Self study Guide one

            Thanks for sharing

           anonymous

          Comment

          Anonymous netizens
           :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

          Drag the slider to complete validation