Search
 
SCRIPT & CODE EXAMPLE
 

PHP

excerpt length wordpress

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

Change WordPress excerpt length

1
2
3
4
5
// Change WordPress excerpt length to 25 words
function wpt_change_excerpt_length( $length ) {
  return 25; // change 25 to your choice
}
add_filter( 'excerpt_length', 'wpt_change_excerpt_length', 9999);
Comment

PREVIOUS NEXT
Code Example
Php :: php how to count array 
Php :: laravel json response decode 
Php :: how to create a new component in laravel 
Php :: laravel blade date format 
Php :: deprcation problem phpmyadmin ubuntu 
Php :: string remove line breaks php 
Php :: mysql timestamp format php 
Php :: twig print_r 
Php :: laravel plural 
Php :: php array to js 
Php :: Internal error: xmlSchemaDocWalk, calling xmlSchemaValidateElem(). 
Php :: add column in laravel migration cmnd 
Php :: laravel migration add unique column 
Php :: magento colloction query 
Php :: disable edit-link storefront 
Php :: How to get the current date in PHP? 
Php :: js change h1 value 
Php :: decimal to binary php 
Php :: do shortcode wordpress 
Php :: php string ends with 
Php :: get country from ip php 
Php :: wordpress disable posts 
Php :: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 119541600 bytes) in C:xampphtdocsackup-vice.php on line 67 
Php :: php text Cyrillic check 
Php :: guzzlehttp post json example 
Php :: laravel command progress 
Php :: get today date in php 
Php :: Git delete single branch 
Php :: how push to array whit key in laravel 
Php :: header location in php 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =