If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)


How to limit excerpt length

This tutorial will show you how to limit the post excerpt in WordPress


Example 1. Editing loop.php file

1. Open wp-content/themes/theme### folder

2. Open loop.php file with your HTML/PHP editor (Dreamweaver, Expression Web etc)

3. Use search tool (CTRL+F) and search for get_the_excerpt()

You should see somehting like this:

<?php if (is_single()) { 
	} else { 
		$excerpt = get_the_excerpt(); echo my_string_limit_words($excerpt,'20');

Here the excerpts are limited by the number of words. Modify the value here: ($excerpt,’20‘)


Feel free to check the detailed video tutorial below:
How to limit excerpt length

Live Chat
We help you to choose the right product.
Start chat