描述 更多类似的主题函数信息,请查看主题开发手册中的条件标签文章。 返回 (bool) 查询是否为404错误。 相关使用描述__()检索$text的翻译WP_Query::is_404()_doing_it_wrong()被使用描述wp_title()显示或检索博客所有区域的页面标题get_body_class()检索body元素的类名数组print_embed_comments_button()print_embed_sharing_button()print_embed_sharing_dialog()wp_get_document_title()WP::handle_404()wp_old_slug_redirect()redirect_canonical()wp_redirect_admin_locations()maybe_redirect_404() 源码查看源码 官方文档 更新日志版本描述1.5.0开始引入 使用示例示例1示例 if ( is_404() ) { // add search form so that users can search other posts }