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.

Top ↑

See also


Top ↑

Source

File: wp-includes/link-template.php

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


Top ↑

Changelog

Changelog
VersionDescription
5.6.0No longer used in core.
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More