start_post_rel_link

Display relational link for the first post.

Description

start_post_rel_link( , (constant) $in_same_cat = false, (string) $excluded_categories = '' ); 

Parameters (3)

0. $title — Optional. (string) => '%title'
Link title format.
1. $in_same_cat — Optional. (constant) => false
Whether link should be in a same category.
2. $excluded_categories — Optional. (string) => ''
Excluded categories IDs.

Usage

  1. if ( !function_exists( 'start_post_rel_link' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // Optional. Link title format. 
  5. $title = '%title'; 
  6.  
  7. // Optional. Whether link should be in a same category. 
  8. $in_same_cat = false; 
  9.  
  10. // Optional. Excluded categories IDs. 
  11. $excluded_categories = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = start_post_rel_link($title, $in_same_cat, $excluded_categories); 
  15.  

Defined (1)

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

/wp-includes/deprecated.php  
  1. function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') { 
  2. _deprecated_function( __FUNCTION__, '3.3.0' ); 
  3.  
  4. echo get_boundary_post_rel_link($title, $in_same_cat, $excluded_categories, true);