Skip to content
Nilesh Shiragave
  • Home
  • Services
  • About Me
  • BlogExpand
    • Javascript
    • PHP
    • React
    • Shopify
    • WordPress
  • ResourcesExpand
    • Code Snippets
  • Contact Me
Nilesh Shiragave

Home - Blog - Wordpress

wordpress change excerpt length

ByNilesh Shiragave December 29, 2010October 29, 2022 Last Updated OnOctober 29, 2022 Wordpress

By default, excerpt length is set to 55 words. To change excerpt length using excerpt_length filter, add the following code to functions.php file in your theme:

function your_excerpt_length($length) {
	return 30;
}
add_filter('excerpt_length', 'your_excerpt_length');

Resource

WordPress Codex : the_excerpt()

Post Tags: #tips#tricks#wordpress hacks
Nilesh Shiragave

Experienced Full Stack Developer from India with 15+ years in web development. Capturing moments through the lens as a passionate photographer.

Post navigation

Previous Previous
wordpress most commented posts
NextContinue
WordPress Add Home link to wp_nav_menu()

ADVERTISEMENTS

Disclosure: This content may contain a few affiliate links, which means if you click on them, I will get a commission (without any extra cost to you).

LOOKING FOR A DESIGN AND DEVELOPMENT PARTNER?

LET’S WORK TOGETHER

About Me


Hello, everyone! My name is Nilesh Shiragave. I’m from India. I have over 16 years of extensive experience in web development.

Recent Articles


  • How to Connect Bricks Builder Forms to HubSpot Using a Private App Token [Without Plugin]
  • Essential Shopify Apps to Boost Your eCommerce Store in 2025
  • Wix vs. Squarespace vs. WordPress: Which is Best for Your Website?
  • Best Free WordPress Themes for Photography
  • How to Upgrade or downgrade the WordPress version using WP CLI
  • Kadence Theme : Add Table Of Contents (TOC) on all blog posts without editing blog posts

Copyright 2025 | All Rights Reserved

Home About Blog Contact
  • Facebook
  • Twitter
  • LinkedIn
Scroll to top
  • Home
  • Services
  • About Me
  • Blog
    • Javascript
    • PHP
    • React
    • Shopify
    • WordPress
  • Resources
    • Code Snippets
  • Contact Me
Search