Limiting the number of words in the excerpt of the article

Snippet code for limiting the number of words in the excerpt of the article
Share:
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...
Limiting the number of words in the excerpt of the article
Table Of Content:
Related Article
function digitalizer_excerpt_length( $length ) {
	return 20;
}
add_filter( 'excerpt_length', 'digitalizer_excerpt_length', 999 );

Leave a Reply

Your email address will not be published.

Related Article

Adding Meta Author
Adding Meta Author in WordPress
class active in navigation
Adding active class to active navigation with jQuery
Code snippet to add active class to active navigation menu.
Navigation Menu
Code (Function) to bring up the menu list in WordPress
COMPLETE PACKAGE OF WEBSITE DESIGN & DEVELOPMENT
Digitalizer offers website design & development services for company profiles, online shops, event organizers, educational institutions or other fields. You don't need to think about domains, web hosting / servers, DNS, email, design, development, security and other technical issues. Just prepare your website content, we do the rest.
All website design & development packages include 1 year maintenance!
Free Consultation
Back to top
cross