WordPress Excerpt Length: What It Is, How to Change It + Plugin Recommendations

WordPress Excerpt Length is a feature that allows you to control the length of the excerpt that appears on your blog posts. By default, WordPress will display the first 55 words of your post as the excerpt. However, you can change this setting to display more or less words.

To change the WordPress Excerpt Length, you can either use the WordPress Customizer or a plugin. To use the WordPress Customizer, go to Appearance > Customize > Excerpts. Here, you can set the number of words you want to display in the excerpt.

If you want more control over the excerpt length, you can use a plugin. There are several plugins available that allow you to customize the excerpt length. Some of the most popular plugins include Advanced Excerpt, Excerpt Editor, and Excerpt Length Control.

These plugins allow you to set the exact number of words you want to display in the excerpt, as well as other options such as the ability to add a “Read More” link or to display the full post content.

No matter which method you choose, changing the WordPress Excerpt Length is a great way to customize the look and feel of your blog posts.
[ad_1]

If you’re a WordPress user, you already know that the theme and WordPress core automates a lot of the features that dictate how your content is displayed. A common example is how pages display excerpts of your articles. But did you know that you can customize the WordPress excerpt length? This tutorial will explain how you can do just that!

What is the Excerpt in WordPress

An excerpt is a part of a post that links to the full article. It’s used to interest readers and makes them want to read further. It helps to highlight key points of your content as sometimes a title is not enough to get your audience’s attention.

By default, WordPress limits excerpts to the first 55 words of your post.

When using the classic WordPress editor, excerpts can be automatically added to your content by pressing the Read More button. It will add the <!–more–>tag to the HTML, which can be seen in the HTML editor. You can also type in a custom message like <!–more Continue Reading!–>.

Inserting a Read More tag into a WordPress post.

Alternatively, you can change its length according to your needs. Providing more text can attract readers’ attention to the article.

There are different ways of doing this task. Below you will find instructions that will lead you through the process.

How to Change the Excerpt Length

The two most common ways to change the excerpt length are either by doing it manually or by using a WordPress plugin.

Manually Changing WordPress Excerpt Length

The manual method involves tweaking the code. However, you don’t need to have in-depth knowledge in any programming language to do this.

Here are the steps to manually change the length of an excerpt:

  1. Hover on the Appearance tab and select Theme Editor.
  2. Open the functions.php file and insert the code: function my_excerpt_length($length){ return 80; } add_filter(‘excerpt_length’, ‘my_excerpt_length’);
  3. Change the word limit from 80 to any number you like, and press the Update File button.

For some themes, like Twenty Sixteen WordPress, you’ll need to edit the content.php file as well. Follow the guide below:

  1. While still in the Theme Editor, scroll down until you find template-parts. Under that heading, click on the content.php file.
  2. Search for the lines: <div class=“entry-content”> <?php

    Add the following code snippet just below them:

    if ( is_home() || is_category()||is_archive()){ the_excerpt(”); }else{

  3. Find the statements: ?> </div><!-- .entry content -->

    Then insert the following line above them:

    } // end of if statements

  4. Click Update File, and you’re done!

The final result will look something like this:

Wordpress excerpt length example.

Changing WordPress Excerpt Length With a Plugin

One of the easiest ways to customize excerpt length is by changing it with a plugin. A recommended option for this task would be the Advanced Excerpt plugin. It’s free and easy to use.

By using the plugin, you can:

  • Trim the excerpt by word count or characters.
  • Add a ‘Read More’ link and customize it.
  • Complete the last word of the excerpt so that it doesn’t end midway.
  • Keep the HTML markup and choose which tags will be included.

To install it, hover on Plugins on your WordPress Dashboard, and press Add New. Type in “advanced excerpt plugin” in the Keyword bar. Click the Install Now button, then Activate it.

Searching for Advanced Excerpt plugin.

Check out our other article on how to install plugins for a complete tutorial.

To use the plugin, follow the guide below:

  1. Go to the Plugins tab and press Settings under the plugin.
    WordPress excerpt plugin settings.
  2. Customize the available options to your liking.
    Customizing Advanced Excerpt plugin's settings.
  3. Click the Save Changes button.

Conclusion

One of the points that contribute to triggering a reader’s curiosity towards an article is the excerpt. When using WordPress, you can change the default excerpt length in two ways:

  1. Manually ‒ inserting code into the function.php file of a theme.
  2. Using a plugin ‒ installing the Advanced Excerpt plugin and configuring its settings.

Happy editing!

[ad_2]

WordPress Excerpt Length: What It Is, How to Change It + Plugin Recommendations

WordPress excerpts are a great way to give readers a quick overview of your content. They are usually displayed on the homepage, archives, and search results pages. By default, WordPress excerpts are 55 words long, but you can easily change the length to suit your needs. In this article, we’ll discuss what WordPress excerpts are, how to change their length, and recommend some plugins to help you manage them.

What Is a WordPress Excerpt?

A WordPress excerpt is a short summary of your post or page. It’s usually displayed on the homepage, archives, and search results pages. By default, WordPress excerpts are 55 words long, but you can easily change the length to suit your needs.

How to Change the WordPress Excerpt Length

Changing the WordPress excerpt length is easy. All you need to do is add a few lines of code to your theme’s functions.php file. Here’s the code you need to add:

function custom_excerpt_length( $length ) {
    return 20;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

This code will change the excerpt length to 20 words. You can change the number to whatever you want.

Plugins to Help You Manage WordPress Excerpts

If you don’t want to mess with code, there are some great plugins that can help you manage WordPress excerpts. Here are some of our favorites:

These plugins make it easy to change the excerpt length, add custom excerpts, and more.

Conclusion

WordPress excerpts are a great way to give readers a quick overview of your content. By default, WordPress excerpts are 55 words long, but you can easily change the length to suit your needs. You can do this by adding a few lines of code to your theme’s functions.php file, or by using a plugin. We hope this article has helped you understand WordPress excerpts and how to manage them.

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

GSTIN is 03EGRPS4248R1ZD.

Contact
Jassweb, Rai Chak, Punjab, India. 143518
Item added to cart.
0 items - 0.00