Connect with us

DOWNLOAD APK/APP

How to

How To Change The Post Default Excerpt Length On WordPress

Published

on

5
(1)

How To Change The Post Default Excerpt Length On WordPress

ow To Change The Post Default Excerpt Length On WordPress

This code will let you define a new custom default excerpt length for the WordPress excerpts display.
The following example will set the default excerpt length to 25 characters.

Instructions
Add this code below to your functions.php file.function codetechinix_excerpt_length($length) { return 20;}add_filter(‘excerpt_length’, ‘codetechinix_excerpt_length’);

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

READ  How to Display The WordPress Featured Image Caption Without a Plugin

Shedrach uzogazie Techfarns co-founder and an aspiring entrepreneur who keeps a close eye on open source, tech giants, and security. Get in touch with him by sending an email — techfarns@gmail.com

%d bloggers like this: