How to increase blog excerpt length in WordPress

  1. Previous
  2. Next
  3. Recent

    1. Signs 'He' May be Cheating on You
    2. 7 Vows of Hindu Marriage - Know What 'Saat Vachans' Mean
    3. RuPay vs Visa vs Mastercard vs American Express- A Comparison
    4. What is RuPay? Everything You Need to Know About India's Domestic Payment System!
    5. Top 10 Online Portals to Find a High Paying Job in India
    6. Top Indians who Revolutionized the IT Sector in India
    7. 8 Initiatives by Narendra Modi that Could Change the Future of the Nation
    8. 8 Work-from-home Jobs for Housewives, Students, and Part timers
    9. Complete Company Registration Process in India - Explained
    10. Change Name in India in 5 Steps - Filing Affidavit, Newspaper Ad & Gazette Notification

By default, excerpt length of a WordPress powered blog is limited to 55 characters only. It means, your homepage will display blogs with heading and a 55 character long excerpt.

To increase the length, just copy and paste the below written code with minor alterations.

The code

function new_excerpt_length($length) {
	return 20;
add_filter('excerpt_length', 'new_excerpt_length');

Make changes

  1. Change the value, 20 with a number of your choice. If you’ll set 100 then your excerpt length would increase up-to 100 characters.
  2. Finally, add this code to the functions.php file present in the WordPress theme you’re currently using (wordpress > wp-content > themes > ‘your theme’ > functions.php)
blog comments powered by Disqus