Add summary function to WordPress page

WordPress four 6.6K Reading mode

 

 Add summary function to WordPress page When editing a WordPress article, you can enter the article introduction in the "Summary" below the edit box, but the WordPress page does not have this function by default. The "Summary" function of the WordPress page can be realized through the following code.

Open the functions.php file of your current theme and add the following code:

  1. function  my_init() {
  2.      add_post_type_support('page',  array ('excerpt'));
  3. }
  4. add_action('init', 'my_init');

 

 

Original text: How To Add Excerpts To WordPress Pages

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
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 three    Author one
    •  Robin
      Robin

      dgfggg

      •  Smart Internet
        Smart Internet three

        See how it is implemented.

        •  Clothing marketing planning
          Clothing marketing planning two

          I used to need to modify this when I modified foreign themes

         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