开发者

Why do my Wordpress comments have the wrong date?

开发者 https://www.devze.com 2022-12-22 16:39 出处:网络
Currently, every comment has the same date as the original post. Theme functions PHP: <div class=\"comment-meta commentmetadata开发者_StackOverflow\">

Currently, every comment has the same date as the original post.

Theme functions PHP:

<div class="comment-meta commentmetadata开发者_StackOverflow">
<?php comment_author_link() ?><?php _e('&nbsp;said:&nbsp;','my-theme-here');?>
<?php comment_date(__('Y.m.d','my-theme-here')) ?>&nbsp;<?php comment_time(__('H:i','my-theme-here')) ?>
</div>

Any thoughts? (or other code I need to paste here)


As far as I can tell from the Wordpress docs, and looking at a few different themes, including the default theme, comment_time doesn't take any arguments. Try <?php comment_time() ?> instead. Same with <?php comment_date() ?>

0

精彩评论

暂无评论...
验证码 换一张
取 消