条件标签的完整列表
is_front_page() is_home() is_front_page() is_home() is_admin() is_network_admin() is_admin_bar_showing() 是单个(_S) is_sticky() is_post_type_hierarchical($post_type) is_post_type_archive() is_comments_popup() comments_open() pings_open() is_page() is_page_template() is_category($category) is_tag() is_tax() has_term() term_exists($term、$taxonomy、$parent) is_taxonomy_hierarchical($taxonomy) taxonomy_exists($taxonomy) is_author() 是日期(_date) 是年(_year) 是_月(_) 是日(_D) 是时间(_time) 是_新_天() 是_存档() is_search() is_404() is_paged() 是附件(_A) wp_attachment_is_image($post_id) is_local_attachment($url) is_singular() post_type_exists($post_type) 是主查询() 是_新_天() is_feed()(必需) is_trackback() is_preview() in_the_loop() is_dynamic_sidebar() is_active_sidebar() is_active_widget($widget_callback,$widget_id) is_blog_installed() is_rtl() 是多站点(_M) 是主站点() is_super_admin() is_user_logged_in() 电子邮件存在($email) 用户名存在($username) is_plugin_active($path) is_plugin_inactive($path) is_plugin_active_for_network($path) is_plugin_page() is_child_theme()(儿童主题) 当前主题支持() has_post_thumbnail($post_id) wp_script_is($handle,$list)
……的条件…
主页面
头版
博客页面
一个帖子页面
A PAGE页面
有帖子缩略图
单个页面、单个帖子、附件或任何其他自定义帖子类型
类别页面
标记页
分类页面(及相关页面)
is_tax() has_term() term_exists($term、$taxonomy、$parent) is_taxonomy_hierarchical($taxonomy) taxonomy_exists($taxonym)