adjacent_posts_rel_link_wp_head()

In this article

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

function adjacent_posts_rel_link_wp_head() {
	if ( ! is_single() || is_attachment() ) {
		return;
	}
	adjacent_posts_rel_link();
}

Changelog

VersionDescription
5.6.0No longer used in core.
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.