本文整理汇总了PHP中adjacent_posts_rel_link函数的典型用法代码示例。如果您正苦于以下问题:PHP adjacent_posts_rel_link函数的具体用法?PHP adjacent_posts_rel_link怎么用?PHP adjacent_posts_rel_link使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了adjacent_posts_rel_link函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: adjacent_posts_rel_link_wp_head
/**
* Display 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.
* @since 3.0.0
*
*/
function adjacent_posts_rel_link_wp_head()
{
if (!is_single() || is_attachment()) {
return;
}
adjacent_posts_rel_link();
}
示例2: adjacent_posts_rel_link_wp_head
/**
* Display 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.
* @since 3.0.0
*
*/
function adjacent_posts_rel_link_wp_head() {
if ( !is_singular() || is_attachment() )
return;
adjacent_posts_rel_link();
}