我收到了一个旧的wordpress 2.8并成功升级到WP3。2.1。我刚刚发现WP管理员的帖子列表中显示的评论数量是错误的。
您知道我如何通过在数据库中运行一个聪明的SQL更新查询来解决这个问题吗?该查询将获取与帖子相关联的真实评论数,并相应地更新帖子行?
我收到了一个旧的wordpress 2.8并成功升级到WP3。2.1。我刚刚发现WP管理员的帖子列表中显示的评论数量是错误的。
您知道我如何通过在数据库中运行一个聪明的SQL更新查询来解决这个问题吗?该查询将获取与帖子相关联的真实评论数,并相应地更新帖子行?
I nailed it:
UPDATE wp_posts as p SET comment_count =(SELECT count(*) FROM `wp_comments` WHERE `comment_post_ID`=p.ID);
转到此链接并单击子标题中显示“2条评论”的位置:http://themeforward.com/demo2/2011/01/17/lobortis-tellus-diam/When the link that brings the user to the comments is clicked it doesn\'t just scroll users down the page, it brings them to what APPEARS TO BE a separate page (even tho