Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress判断文章页面函数:is_single 发布于2022/07/13 WordPress函数is_single用于判断是否文章类型为post的页面,但不包括附件(attachments)和··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress文章发表日期标签:the_date 发布于2022/07/13 WordPress模板标签the_date输出当前文章的发表日期,需要用在The Loop主循环中。 the_dat··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress获取当前文章ID标签:the_ID 发布于2022/07/13 WordPress模板标签the_ID用于输出当前文章的ID,需要用在The Loop主循环里。 the_ID() 使··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress判断置顶文章函数:is_sticky 发布于2022/07/13 WordPress函数is_sticky用于判断当前文章是否置顶,在WordPress主题的制作中,可以通过判··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress获取最新文章函数:wp_get_recent_posts 发布于2022/07/13 WordPress函数wp_get_recent_posts用于获取最新文章,包括文章的标题、别名、状态、发表··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress判断文章是否设置了特色图像函数:has_post_thumbnail 发布于2022/07/13 WordPress函数has_post_thumbnail用于判断当前文章是否设置了特色图像,即是否包含缩略图··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress判断是否指定文章类型归档页函数:is_post_type_archive 发布于2022/07/13 WordPress函数is_post_type_archive用于判断是否指定的文章类型归档页。 is_post_type_ar··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress注册文章类型函数:register_post_type 发布于2022/07/13 WordPress函数register_post_type用于注册新的文章类型,不应该在init动作前挂载,所有分··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress自定义文章类型归档页标题函数:post_type_archive_title 发布于2022/07/13 WordPress函数post_type_archive_title用于在自定义文章类型归档页输出标题,通常在archi··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress自定义文章类型添加编辑区功能函数:add_post_type_support 发布于2022/07/13 WordPress函数add_post_type_support用于为自定义文章类型编辑区添加功能。 add_post_typ··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress自定义文章类型删除编辑区功能函数:remove_post_type_support 发布于2022/07/13 WordPress函数remove_post_type_support用于删除自定义文章类型编辑区功能。 remove_post··· 查看详情
Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169 WordPress检查自定义文章类型编辑区功能是否支持:post_type_supports 发布于2022/07/13 WordPress函数post_type_supports用于检查自定义文章类型编辑区功能是否支持。 post_type··· 查看详情