Wordpress:始终显示文章评论 [英] Wordpress : always display comments with articles

查看:33
本文介绍了Wordpress:始终显示文章评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当显示特定月份的所有文章时(通过像这样的网址给出:?m=200906&order=ASC,我想在每篇文章之后显示关于这篇文章的所有评论.

When displaying all articles of a specific month (given through the urls like this : ?m=200906&order=ASC, I would like to display, following each article, all comments regarding this article.

在默认主题(我正在使用的)的article.php 中,我尝试添加以下行:

In the article.php of the default theme (the one I'm using), I tried to add the following line :

<?php comments_template(); ?>

行前

<?php endwhile; ?>

(正如我在 single.php 中看到的那样)但它不起作用,我现在真的不知道下一步可以尝试什么.

(as I've seen it in single.php) but it doesn't work and I don't really now what I could try next.

推荐答案

尝试:

<?php $withcomments = "1"; comments_template(); ?>

来自包括标签« WordPress Codex

这篇关于Wordpress:始终显示文章评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆