wordpress 分页
Have you noticed that your blog posts with a lot of comments load slower than other posts? That’s because loading so many comments increase server load which increases your average page load time.
您是否注意到带有很多评论的博客帖子的加载速度比其他帖子慢? 那是因为加载太多注释会增加服务器负载,从而增加平均页面加载时间。
Having a lot of comments is a good thing because it means that your users are engaged with your content. Your most commented posts are usually the most popular posts on your blog.
进行大量评论是一件好事,因为这意味着您的用户参与了您的内容。 您评论最多的帖子通常是博客上最受欢迎的帖子。
However if a lot of comments are slowing down your website, then it can hurt your SEO rankings. That’s when pagination for WordPress comments comes handy.
但是,如果大量评论使您的网站变慢,那么它可能会损害您的SEO排名。 那时,WordPress评论分页变得很方便。
In this article, we will show you how to paginate comments in WordPress to speed up your post load time. The best part is that it comes as a default feature in WordPress, and it is very easy.
在本文中,我们将向您展示如何在WordPress中对注释进行分页,以加快您的帖子加载时间。 最棒的是,它是WordPress的默认功能,非常简单。
为什么您应该在WordPress中对注释进行分页 (Why You Should Paginate Comments in WordPress)
Comment pagination helps you improve your website speed which is an important factor in your website SEO rankings.
评论分页可帮助您提高网站速度,这是网站SEO排名的重要因素。
Many of our users have reported that sometimes posts with a lot of comments can cause their readers to see white screen of death because it exhausts their server’s memory.
我们的许多用户报告说,有时带有很多评论的帖子可能会导致读者看到白屏死机,因为它耗尽了服务器的内存。
Even when it doesn’t cause ‘white screen of death’, posts with a lot of comments tend to be really really slow.
即使它不会导致“死亡白屏”,带有很多评论的帖子也往往非常缓慢。
Comment pagination reduces server load for your most commented posts by splitting comments into multiple pages.
通过将评论分为多个页面,评论分页减少了您对评论最多的帖子的服务器负载。
Another reason to paginate your WordPress comments is to maintain the keyword density of your articles. Comments add a lot of content to your post’s page, and they may not always include your target keywords in a sufficient amount.
对WordPress注释进行分页的另一个原因是保持文章的关键字密度。 注释会在您的帖子页面上添加很多内容,并且可能不会总是包含足够数量的目标关键字。
When keyword ratio to content decreases, search engines fail to index your post for the right keywords.
当关键字与内容的比率降低时,搜索引擎将无法为您的帖子索引正确的关键字 。
Comment pagination can also have a negative SEO impact if it is not used correctly. Basically, WordPress generates URLs for each new page of comments. Search engines may consider this as ‘duplicate content’.
如果未正确使用评论分页,也可能会对SEO产生负面影响。 基本上,WordPress为每个新的评论页面生成URL。 搜索引擎可能会将其视为“重复内容”。
This issue can be easily fixed by using the Yoast SEO plugin, which points search engines to the canonical URL of your article.
使用Yoast SEO插件可以轻松解决此问题,该插件将搜索引擎指向您文章的规范URL。
Now that we have discussed the pros and cons of comment pagination, let’s take a look at how to easily paginate comments in WordPress.
现在,我们已经讨论了评论分页的利弊,让我们看一下如何在WordPress中轻松分页评论。
分两步对WordPress注释进行分页 (Paginating WordPress Comments in Two Steps)
The first thing you need to do is login to your WordPress admin area and go to Settings » Discussions page.
您需要做的第一件事是登录WordPress管理区域,然后转到“设置”»“讨论”页面。
Next, look for the ‘Break comments into pages’ option. From here you need to enter the number of comments you want on each page, and how you want to display them.
接下来,查找“将注释插入页面中”选项。 在这里,您需要输入每页上所需的评论数以及显示方式。
Don’t forget to click on the ‘Save Changes’ button to store your settings.
不要忘记点击“保存更改”按钮来保存您的设置。
You can now visit any popular post on your website that has a lot of comments. You will notice the pagination links below the comments.
现在,您可以访问网站上任何评论很多的热门帖子。 您会注意到评论下方的分页链接。
Depending on your theme’s styling, you will either see numeric pagination or ‘Previous / Next’ comment links.
根据主题的样式,您将看到数字分页或“上一个/下一个”注释链接。
Here is how comment pagination looks on our article 24 “Must Have” WordPress Plugins.
这是在我们的文章24“必备” WordPress插件上的评论分页外观。
Note: Just like comments, you can also paginate WordPress posts by splitting a long post into multiple pages.
注意:就像评论一样,您也可以通过将较长的帖子分成多个页面来对 WordPress帖子进行分页。
We hope that this tutorial helped you paginate comments in WordPress. You might also want to see our guide on how to combat comment spam in WordPress.
我们希望本教程可以帮助您在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视频教程。 您也可以在Twitter和Facebook上找到我们。
翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-paginate-comments-in-wordpress/
wordpress 分页
了解如何在WordPress中启用评论分页,以减少服务器负载并提升网站速度。评论分页不仅可以改善SEO排名,还能维持文章关键字密度,避免服务器资源过度消耗。
&spm=1001.2101.3001.5002&articleId=108610527&d=1&t=3&u=759a56abaf5e4ce4b9890f7d429caf85)
2234

被折叠的 条评论
为什么被折叠?



