• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
WPFeed

WPFeed

  • News
  • Tutorials
    • WordPress Multisite
    • BuddyPress
    • Design
  • Reviews
    • Plugins
  • Roundups
  • Snippets
  • Giveaways
Home » BuddyPress » Customize Excerpt Length in WordPress

Customize Excerpt Length in WordPress

WordPress-excerpt

Today I’m going to share a little snippet to change or customize excerpt length on your WordPress site. Excerpt is a quick summary about an article and by default, WordPress will pull the first 55 words from the article as the excerpt.

To change the excerpt length, simply put the following code in the functions.php file of your child theme:

The code will pull the first 30 words as an excerpt. You may change the number to any value as you wish.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • WordPress is a brilliant platform that is loaded with tons of stuff for websites.
  • How to Sync Stock & Price for WooCommerce Products
  • How to migrate a WooCommerce Store to a new site
  • How to Import WooCommerce Products
  • How to export WooCommerce Orders

Copyright © 2023 · WPFeed.com - A Project of TechAbout LLC.

  • About us
  • Advertise
  • Write for us
  • Terms and Conditions
  • Privacy Policy
  • Contact us