twentyeleven_custom_excerpt_more

Add a pretty "Continue Reading" link to custom post excerpts.

Description

twentyeleven_custom_excerpt_more( $output ); 

To override this link in a child theme, remove the filter and add your own function tied to the get_the_excerpt filter hook.

Parameters (1)

0. $output
The output.

Usage

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

Defined (1)

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

/functions.php  
  1. function twentyeleven_custom_excerpt_more( $output ) { 
  2. if ( has_excerpt() && ! is_attachment() ) { 
  3. return $output;