evolve_excerpt_max_charlength

The evolve evolve excerpt max charlength function.

Description

evolve_excerpt_max_charlength( $num ); 

Parameters (1)

0. $num
The num.

Usage

  1. if ( !function_exists( 'evolve_excerpt_max_charlength' ) ) { 
  2. require_once '/library/functions/basic-functions.php'; 
  3.  
  4. // The num. 
  5. $num = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = evolve_excerpt_max_charlength($num); 
  9.  

Defined (1)

The function is defined in the following location(s).

/library/functions/basic-functions.php  
  1. function evolve_excerpt_max_charlength($num) { 
  2. $limit = $num + 1; 
  3. $excerpt = explode(' ', get_the_excerpt(), $limit); 
  4. array_pop($excerpt); 
  5. $excerpt = implode(" ", $excerpt) . " [...]"; 
  6. echo $excerpt;