advantage_single_post_link

This function echo the link to single post view for the following: - Aside Post - Post without title ------------------------------------------------------------------.

Description

advantage_single_post_link(); 

Usage

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

Defined (1)

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

/inc/lib-content.php  
  1. function advantage_single_post_link() { 
  2. if ( ! is_single() ) { 
  3. if ( has_post_format( 'aside' ) || has_post_format( 'quote' ) || '' == the_title_attribute( 'echo=0' ) ) {  
  4. printf ('<a class="single-post-link" href="%1$s" title="%1$s"><i class="icon-chevron-right"></i></a>',  
  5. get_permalink(),  
  6. get_the_title() ); 
  7. }