Skip to Content
WordPress:缺失的手册,第三版
book

WordPress:缺失的手册,第三版

by Matthew MacDonald
May 2025
Beginner to intermediate
492 pages
7h 35m
Chinese
O'Reilly Media, Inc.
Content preview from WordPress:缺失的手册,第三版

第 10 章: 评论:让读者回嘴

您阅读的 章节,您学会了创建任何 WordPress 网站最基本的两个要素:帖子和页面。您使用这些要素与潜在客户或忠实读者交流。但是您还没有考虑过读者如何与您对话。

答案就是 WordPress 评论系统。如果使用得当,评论可以将您的网站从单向的说教转变为与读者或客户的前后对话。评论不仅是一种有趣的交友方式,也是一种严肃的工具,它可以推广你的作品,获得更多流量,将偶然的浏览者变成回头客,甚至赚钱。

在本章中,你将学习如何管理网站上的评论。您可以删除攻击性评论,将自己加入讨论,并与 Facebook 和 Twitter 整合。

了解了评论管理的基础知识后,您就可以应对每个 WordPress 网站都要面对的最大麻烦之一:垃圾评论--可疑的营销人员和骗子在他们能找到的每个网站上发布的信息。您将学习到既能防止垃圾邮件,又不会让读者感到厌烦的策略,您还将顺便探索一下能粉碎垃圾邮件的 Akismet 插件。

允许或禁止评论

如果您没有更改 WordPress 的出厂设置,那么您的所有帖子都已打开 。您可能已经注意到,当您查看单个帖子(而不是页面)时,内容下方有一个很大的 "发表回复 "版块(图 10-1)。

允许对帖子发表评论并不是一个非此即彼的决定。你很快就会看到,你可以选择哪些内容允许评论,哪些内容不允许评论。这样做很好,因为并非所有发布的内容都允许评论。例如,如果你写的是有争议的话题,可能会招来大量煽动性或侮辱性的反馈,这时你可能会想禁止评论。新闻网站有时会禁止评论,以避免承担法律责任(因为评论可能具有诽谤性或可能会泄露禁止发布的信息)。

当涉及到页面 时,WordPress 假定您不需要讨论。毕竟,您可能不会在 "关于我们 "页面上展开热烈的讨论,而且对这类内容的评论会让页面看起来不那么专业。不过,您不必遵循 WordPress 的标准假设。如果您想在页面上发表评论,可以有选择地启用它们。

图 10-1

评论区的具体外观取决于您的主题。在 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Manga Studio® for Dummies®

Manga Studio® for Dummies®

Doug Hills
Perfecting Your Thinking Skills

Perfecting Your Thinking Skills

MIT Sloan Management Review

Publisher Resources

ISBN: 9798341657953