advantage_continue_reading_link

Returns a "Continue Reading" link for excerpts.

Description

advantage_continue_reading_link(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function advantage_continue_reading_link() { 
  2. global $post; 
  3. $readmore = get_post_meta( $post->ID, '_advantage_readmore', true ); 
  4. if ( empty( $readmore ) ) 
  5. $readmore = __( 'read more', 'advantage' ); 
  6. $link = ' <a class="more-link" href="'. get_permalink() . '">' . $readmore . '</a>'; 
  7. return $link;