Adding Custom Excerpt in WordPress is easy, Here’s how?

If you’re using WordPress and looking to add custom excerptand modify it then, this post can be very useful to you. But before diving deep into detail, let’s understand what are Excerpt in WordPress.

Excerpt in WordPress

Understanding about Excerpt in WordPress

Excerpts are small extracts from your full post or page content. It gives a brief summary of the full article available on your website. So it gives the readers a quick overview of what they can expect from the content visible there. These excerpts are generated via the WordPress function:
<?php the_excerpt(); ?>

Why is it necessary to use Excerpts

After you convert your website from PSD to WordPress, it shows full posts on the home page, blog page and archives of your site. It makes the WordPress site slower and makes the search engine believe that the pageson the WordPress have duplicate content.

The excerpts will help to load your WordPress page faster. It is because while using the page you will be loading a small part of each article and your archive page won’t be affected by the matching content penalty.

Some WordPress themes automatically create a short excerpt of your posts. The major disadvantage of this method is that your WordPress theme calculates the excerpt for you, which can be a little challenging! So it is always better to create a custom excerpt.

Now let’s look at three different ways you can add custom excerpts in WordPress.

Adding a Custom Excerpt in WordPress (Default)

It is very simple to add custom excerpt in WordPress. You can either create a new post or edit the existing one. Go on to the post edit screen, and click on the screen options tab, now choose the excerpt. An excerpt meta box will be shown below your post editor. It provides you with the freedom to add any text in this box, and it will be used as the excerpt for the post.

Excerpt in WordPress

The major problem that you will now face is that some themes might not show your custom excerpt. So in this case, you may have to edit your theme files mainly home.php, content.php, archive.php, category.php, etc.

You will need to locate:
<?php the_content(); ?>

Next, you will need to replace it with the_excerpt tag like this:
<?php the_excerpt(); ?>

Although this method is not very suitable for beginners, who do not want to edit their theme files. It is because of this reason there comes another method.

Adding Custom Excerpts Using Plugin

Hereinthis method, you can add more tag by placing your cursor in the post editor. You can begin this by installing and activating the Advanced Excerpt plugin. After activating the plugin visit the settings and then Excerpt page to configure the plugin. This plugin allows you to solve the excerpt display issues caused by your WordPress theme.

After setting up your excerpt, you can save changes button to store your settings. If you want to use something else or use your theme’s excerpts, then can simply deactivate the plugin.

I hope you liked the article! Leave a comment below if you have any questions.

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>