Excerpt is a good way to shorten your article, it’s more like a summary of the article. Other than front page, some themes may use excerpts on the archive pages as well.The default WordPress excerpts are limited to first 55 words of the content and ends with ellipsis […] at the end of the paragraph.
To display an excerpt of the post, you may useĀ <?php the_excerpt(); ?>
in the loop. Please refer to WordPress Codex page for more info about this.
Customize […] in WordPress excerpts
If you’d like to change the […] in the excerpts to something more useful like Read More, you may use the code below. You may also want to change the text to another word. The text will be linked to the permalink of the post.
As you can see from the code above, I added the .more-link
class, so you can further customize the output of the Read More link.
Remove […] from WordPress excerpts
To remove […] from the excerpts, you may use the following code. The code should be in functions.php file of your child theme.
If you’ve any question about the WordPress excerpts, feel free to leave your comment below.
Leave a Reply