adjacent_posts_rel_link_wp_head

Displays relational links for the posts adjacent to the current post for single post pages.

Description

adjacent_posts_rel_link_wp_head(); 

This is meant to be attached to actions like wp_head.. Do not call this directly in plugins or theme templates.


Usage

  1. if ( !function_exists( 'adjacent_posts_rel_link_wp_head' ) ) { 
  2. require_once ABSPATH . WPINC . '/link-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = adjacent_posts_rel_link_wp_head(); 
  7.  

Defined (1)

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

/wp-includes/link-template.php  
  1. function adjacent_posts_rel_link_wp_head() { 
  2. if ( ! is_single() || is_attachment() ) { 
  3. return;