如何在WordPress中创建最近的评论页面

Do you want to create a separate activity page on your site that shows all recent comments? Highlighting recent comments is one of the ways to increase engagement and discussion. In this article, we will show you how to create a recent comments page in WordPress.

您是否要在网站上创建一个单独的活动页面,以显示所有最近的评论? 突出显示最近的评论是增加参与和讨论的方式之一。 在本文中,我们将向您展示如何在WordPress中创建最近的评论页面。

Creating a recent comments page in WordPress
为什么,何时以及谁需要最近的评论页面? (Why, When, and Who Needs a Recent Comments Page?)

Comments play an important role in building a community around your blog. They allow readers to participate in discussions and interact with you.

评论在围绕博客构建社区中起着重要作用。 它们使读者可以参与讨论并与您互动。

However, building a community is no easy task. Many site owners struggle in the beginning. See these 11 tips to get more comments on your WordPress blog posts.

但是,建立社区绝非易事。 许多网站所有者在开始时都在挣扎。 请参阅以下11个技巧,以获取有关WordPress博客文章的更多评论

You will notice that this list contains a section about showcasing your top commenters. Displaying comments prominently on your website encourages more people to comment.

您会注意到,该列表包含有关展示您的主要评论者的部分。 在您的网站上突出显示评论会鼓励更多人发表评论。

WordPress comes with a built in widget to display recent comments in a sidebar. However, sidebars are often too narrow which makes your recent comments widget a bit condensed and difficult to read.

WordPress带有一个内置的小部件,可在边栏中显示最近的评论 。 但是,侧边栏通常太窄,这会使您最近的评论小部件变得简洁且难以阅读。

Recent comments in a sidebar

To supplement your recent comments widget, you can add a recent comments page. Where users can easily read recent comments and follow discussions on your blog.

为了补充您最近的评论小部件,您可以添加最近的评论页面。 用户可以在其中轻松阅读最新评论并关注您博客上的讨论。

Let’s take a look at how you can create a recent comments page in WordPress.

让我们看一下如何在WordPress中创建最近的评论页面。

创建最近的评论页面 (Creating a Recent Comments Page)

First thing you need to do is install and activate the Decent Comments plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活Decent Comments插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

The plugin works out of the box, and there are no settings for you to configure.

该插件可以直接使用,没有可供您配置的设置。

Once activated, simply create a new WordPress page where you want to display your recent comments. In the content area, you need to add this shortcode:

激活后,只需创建一个新的WordPress页面即可在其中显示最近的评论。 在内容区域,您需要添加以下短代码:

[decent-comments/]

[decent-comments/]

If you preview the page, then you will see 5 recent comments with user avatar and comment excerpt.

如果您预览页面,则将看到5条最近的评论以及用户头像和评论摘录。

The Decent Comments shortcode comes with a handful of parameters which will allow you to customize the shortcode to meet your needs.

体面注释简码带有一些参数,使您可以自定义简码以满足您的需求。

For example, you can change the number of comments and avatar size using a shortcode like this:

例如,您可以使用这样的简码来更改评论数和头像大小:

[decent-comments number="30" avatar_size="64" /]

[decent-comments number="30" avatar_size="64" /]

In this example, number and avatar_size are the shortcode attributes and 30 and 64 are their values. This means that it will now show 30 comments and will use 64 pixels for avatar image size.

在此示例中,数字和avatar_size是短码属性,而30和64是它们的值。 这意味着它现在将显示30条评论,并将使用64个像素作为头像图像大小。

A recent comments page on a WordPress site

You can check out this plugin’s documentation page for a full list of shortcode parameters that you can use.

您可以查看此插件的文档页面 ,以获取可以使用的短代码参数的完整列表。

To adjust the visual appearance of your recent comments, you may need to add Custom CSS. If you don’t know CSS, then you may want to check out CSS Hero it allows you adjust CSS in any WordPress theme without writing a single line of code.

要调整最近评论的外观,您可能需要添加自定义CSS。 如果您不了解CSS,那么您可能想看看CSS Hero,它使您可以在任何WordPress主题中调整CSS,而无需编写任何代码。

That’s all we hope this article helped you create a recent comments page in WordPress. You may also want to see our guide on how to turn off or disable comments in WordPress pages.

这就是我们希望本文能帮助您在WordPress中创建一个最近的评论页面的全部。 您可能还希望查看有关如何在WordPress页面中关闭或禁用评论的指南。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-create-a-recent-comments-page-in-wordpress/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值