开发者

Why do my Wordpress comments have the wrong date?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜