Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
is_new_day() - 循环中当前文章的发布日期是否与循环中上一篇文章的发布日期不同 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / is_new_day()

is_new_day()

循环中当前文章的发布日期是否与循环中上一篇文章的发布日期不同


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 3 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "badaeba9ad71ec6c6ebeaa3055e52f37" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "c36259426466be41cc8d1020291d7414" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "015c04d854043adb73700db6ab2c6778" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

day

  • is_day() 是否为现有的日期存档
  • is_new_day() 循环中当前文章的发布日期是否与循环中上一篇文章的发布日期不同

is 条件判断more...


描述

更多类似的主题函数信息,请查看主题开发手册中的条件标签文章。


返回

(int) 是新的日期,则返回1,不是则为0。



源码

查看源码 官方文档


更新日志

版本描述
0.71开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194