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:
- function my_init() {
- add_post_type_support('page', array ('excerpt'));
- }
- 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!