adjacent_posts_rel_link_wp_head()
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.
源代码
File: wp-includes/link-template.php
function adjacent_posts_rel_link_wp_head() {
if ( ! is_single() || is_attachment() ) {
return;
}
adjacent_posts_rel_link();
}
更新日志
Version | 描述 |
---|---|
3.0.0 | Introduced. |
相关函数
Uses
-
wp-includes/query.php:
is_single() -
wp-includes/query.php:
is_attachment() -
wp-includes/link-template.php:
adjacent_posts_rel_link()
User Contributed Notes
你可能对这些文章感兴趣:
- wordpress函数floated_admin_avatar()用法示例
- wordpress函数category_description()用法示例
- wordpress函数attachment_submitbox_metadata()用法示例
- wordpress函数attachment_id3_data_meta_box()用法示例
- wordpress函数atom_site_icon()用法示例
- wordpress函数atom_enclosure()用法示例
- wordpress函数array_replace_recursive()用法示例
- wordpress函数apply_filters_ref_array()用法示例
- wordpress函数apply_filters_deprecated()用法示例
- wordpress函数apache_mod_loaded()用法示例
- wordpress函数antispambot()用法示例
- wordpress函数allow_subdomain_install()用法示例
- wordpress函数allow_subdirectory_install()用法示例
- wordpress函数allowed_tags()用法示例
如有疑问,请前往问答中心反馈!
反馈