adjacent_posts_rel_link_wp_head() WordPress Function
The adjacent_posts_rel_link_wp_head() function outputs relational links for the posts adjacent to the current post. This is helpful for search engines and readers alike, as it allows for easy navigation between related content.
adjacent_posts_rel_link_wp_head() #
Displays relational links for the posts adjacent to the current post for single post pages.
Description
This is meant to be attached to actions like ‘wp_head’. Do not call this directly in plugins or theme templates.
See also
Source
File: wp-includes/link-template.php
function adjacent_posts_rel_link_wp_head() { if ( ! is_single() || is_attachment() ) { return; } adjacent_posts_rel_link(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | No longer used in core. |
3.0.0 | Introduced. |