详细教程,一般这个修改是主题文件里,找到主题的文章页面文件single.php 找到代码
<?php echo get_the_time('Y-m-d')?>
修改为
<?php echo the_time('Y-m-d G:i:s');?>
wordpress时间函数以及参数
文章的时间函数为:<?php the_time() ?>
评论的时间函数为: <?php comment_date() ?>
评论的日期函数为:<?php comment_time() ?>
详细教程,一般这个修改是主题文件里,找到主题的文章页面文件single.php 找到代码
<?php echo get_the_time('Y-m-d')?>
修改为
<?php echo the_time('Y-m-d G:i:s');?>
wordpress时间函数以及参数
文章的时间函数为:<?php the_time() ?>
评论的时间函数为: <?php comment_date() ?>
评论的日期函数为:<?php comment_time() ?>
本文标题:修改wordpress文章发布时间精确到秒
本文链接:https://www.haomeiwen.com/subject/znnnaqtx.html
网友评论