Search
 
SCRIPT & CODE EXAMPLE
 

PHP

How to Limit Excerpt Length in WordPress

// Filter except length to 35 words.
// tn custom excerpt length
function tn_custom_excerpt_length( $length ) {
return 35;
}
add_filter( 'excerpt_length', 'tn_custom_excerpt_length', 999 );
Comment

PREVIOUS NEXT
Code Example
Php :: Command "route:scan" is not defined. 
Php :: php multiple line string 
Php :: dynamic alert php 
Php :: laravel env google smtp 
Php :: laravel enum migration 
Php :: west african timezone in php 
Php :: php fpm status check 
Php :: for loop php continue to next item 
Php :: allert in php 
Php :: laravel group by created_at date only 
Php :: Object of class DateTime could not be converted to string 
Php :: php array_sum 
Php :: php format datetime 
Php :: is php still used 
Php :: php array of objects filter 
Php :: add dd function composer 
Php :: wp cli command activate plugin 
Php :: check if input file is set codeigniter 
Php :: behamin brequest installation on laravel 
Php :: remove index.php from url htaccess 
Php :: wordpress search code 
Php :: php replace method that takes infinite input 
Php :: php extract email address from string 
Php :: get country from ip php 
Php :: file get content using call api in php 
Php :: append new line php 
Php :: Redaxo new Mform all fields - input fields - PHP 8+ - MForm 7.0+ 
Php :: convert object to array php 
Php :: php 8 major changes - Nullsafe operator 
Php :: how to set session in laravel 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =