5ucms论坛

标题: WordPress文章显示最后一次修改时间 [打印本页]

作者: admin    时间: 2021-5-29 15:43
标题: WordPress文章显示最后一次修改时间
  1. <div class="disc">本条目发布于<span class="time"><?php the_time('Y年n月j日 H:s'); ?></span><?php if ((get_the_modified_time('Y')*365+get_the_modified_time('z')) > (get_the_time('Y')*365+get_the_time('z'))) : ?>最后修改于<span class="time"><?php the_modified_time('Y年n月j日 H:s'); ?></span><?php endif; ?>属于<span class="category"><?php the_category(’, ‘) ?></span>分类 <?php edit_post_link(); ?> </div>
复制代码





欢迎光临 5ucms论坛 (http://bbs.5ucms.com/) Powered by Discuz! X3.2