New Check out the curated list of the finest design resources I've gathered for you! Take a look →

How to Set Up Excerpt in WordPress

This comprehensive guide will walk you through the process of setting up excerpts in WordPress. Excerpts are brief summaries or teasers of content that provide a sneak peek into the full article without requiring readers to click on the entire post.

Requirements

For this tutorial, you need:

  • A WordPress website
  • Gutenberg editor (optional)

Step-by-Step Tutorial How to Set Up Excerpt in WordPress

  1. By default, WordPress automatically generates an excerpt using the first 55 words of a post. This is useful if you want to use the introductory paragraph as a teaser for your content. However, if you want to create a custom excerpt, proceed to the next step.
  2. If you are using the Gutenberg editor, you can find the excerpt column on the right side of the post editing screen. Simply enter your desired excerpt in this field.
  3. If you are not using the Gutenberg editor, you can create a custom excerpt by adding the following code to your theme’s functions.php file:
add_filter('excerpt_length', function($length){
	return 20; // Replace 20 with the desired maximum number of characters for the excerpt
}

Remember to replace the number “20” in the code with your desired maximum character limit for the excerpt.

Once you have set up the excerpt, it will be displayed in various parts of your WordPress website, such as the blog homepage, category pages, and search results.

Summary of Excerpt Configuration

In conclusion, setting up excerpts in WordPress allows you to provide a glimpse of your content to readers without requiring them to read the entire post. By following the steps outlined in this guide, you can easily create custom excerpts or adjust the automatic excerpt length according to your preferences, enhancing the user experience on your website.

For more helpful articles on WordPress and website optimization, check out my blog section.

Rizwan Aritonang

An independent WordPress & Front-End Developer from Bandung, Indonesia.

Get In Touch

Leave a Comment