我有这个密码
<?php if( date(\'U\') - get_the_time(\'U\', $post->ID) < 24*60*60 ) : ?>New Post<?php endif; ?>
对于24小时以下的帖子,如果超过24小时,我想修改代码以显示旧帖子我有这个密码
<?php if( date(\'U\') - get_the_time(\'U\', $post->ID) < 24*60*60 ) : ?>New Post<?php endif; ?>
对于24小时以下的帖子,如果超过24小时,我想修改代码以显示旧帖子只需翻转“小于”<
至“大于”>
:
<?php if ( date( \'U\' ) - get_the_time( \'U\', $post->ID ) > DAY_IN_SECONDS ) : ?>Old Post<?php endif ?>
http://codex.wordpress.org/Easier_Expression_of_Time_Constants
我知道添加一个独特的favicon很容易。多站点安装中每个站点的ico。但任何让每个网站都成为favicon的想法。ico是否显示在站点的根目录中?最终结果是http://example.com/favicon.ico 和http://anotherexample.com/favicon.ico