Displays relational links for the posts adjacent to the current post for single post pages.
This is meant to be attached to actions like ‘wp_head’. Do not call this directly in plugins or theme templates.
function adjacent_posts_rel_link_wp_head() {
if ( ! is_single() || is_attachment() ) {
return;
}
adjacent_posts_rel_link();
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/adjacent_posts_rel_link_wp_head