An excerpt field in WordPress post and page is a section used for article summary. In this blog post, we are going to share about how to enable Excerpt field in WordPress Post and Page.
Enable Excerpt in Post
Enabling excerpt filed is easy in case of the post because WordPress post has excerpt filed by default. You can just go to Screen Options on the top of the post section and enable the excerpt field. You can see the below screenshot to know how to enable excerpt field in post.
- Go to Posts
- Add new Posts or Edit the Old Posts
- Check Screen Options and Enable Excerpt Field
- Excerpt Field will appear just below the content section.
Enable Excerpt in Page
By default, you don’t get the excerpt field in the page. If there is no any option to enable the Excerpt filed in the Screen Option, you can just add the below code in functions.php file of your theme to enable it.
// Adding excerpt for page
add_post_type_support( ‘page’, ‘excerpt’ );
After adding the above code, you will get an option to enable Excerpt on the page as well. See the below screenshots before adding the code and after adding the code.
Before Adding the Above Code
After Adding the Code
Hope this post helps you to enable Excerpt filed in Post as well as page too. If you have any further queries, kindly comment us in the below comment section.