Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169
WordPress获取父页面ID函数:get_post_ancestors

WordPress获取父页面ID函数:get_post_ancestors

发布于2022/07/13
WordPress函数get_post_ancestors用于获取父页面的ID,通常在企业模板中,侧边栏需要显示···

Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169
WordPress获取文章形式函数:get_post_format

WordPress获取文章形式函数:get_post_format

发布于2022/07/13
WordPress函数get_post_format用于获取文章的形式,在为不同形式的文章制作不同的模板时···

Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169
WordPress获取文章标签:get_posts

WordPress获取文章标签:get_posts

发布于2022/07/13
WordPress模板标签get_posts用于获取文章信息,通常用于输出最新文章列表、随机文章、指···

Warning: Undefined array key 0 in /www/wwwroot/www.dianjin123.com/wp-content/themes/dianjinwp/functions.php on line 169
WordPress判断文章页面函数:is_single

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

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

WordPress获取当前文章ID标签:the_ID

发布于2022/07/13
WordPress模板标签the_ID用于输出当前文章的ID,需要用在The Loop主循环里。 the_ID() 使···