FastComments.com

Add Live Commenting to WordPress Sites

快速开始 Internal Link


这是 WordPress 指南的“太长不看”版本。

  1. 转到您的 WordPress 控制面板的插件页面。点击 Add Plugin
  2. 搜索 FastComments
  3. 安装并激活我们的插件。
  4. 在左侧导航中点击 FastComments
  5. 按照指示操作。通常只需几分钟,不会更久。
    1. 如果您有数万或数百万条评论,可能需要一些时间来同步。

自定义 Internal Link


FastComments 旨在可通过自定义以匹配您的网站。

如果您想添加自定义样式或调整配置,请查看我们的自定义与配置文档以了解如何操作。


通知 Internal Link

当您的成员被回复或被提及时,他们将收到与任何其他 FastComments.com 用户相同的通知。 了解更多.

自定义主题 Internal Link

虽然我们无法控制主题如何实现,但 FastComments 支持大多数主题。

一些试图将评论区域移入模态窗口或类似布局的主题可能需要我们提供自定义开发支持。

同步回 WordPress Internal Link

默认情况下,FastComments 每天会将评论同步回您的 WordPress 站点。这样做纯粹是为了备份目的,以便您继续拥有数据的副本,并为可能依赖于它的插件提供支持。

由于某些站点能够处理大量读取流量,但其数据库部署未必能处理大量写入流量(因此将这部分工作卸载给 FastComments),所以这并不会在每次保存评论时立即发生。

可以通过安装插件来自定义同步回 WordPress 的计划。我们推荐 WP Crontrol

步骤:

  1. 安装 WP Crontrol
  2. 转到 Settings -> Cron Schedules
  3. 转到 Cron Events 选项卡。
  4. 搜索 fastcomments_cron_hook
  5. 编辑该事件。您可以将该钩子配置为每小时运行、每天运行两次、每天运行(默认)或每周运行一次。

也可以随时手动执行同步回 WordPress:进入 FastComments 插件仪表板并选择 Manually Sync。您可以选择将数据同步回您的 WP 安装,或将您的 WP 评论重新上传到 FastComments 服务器。

评论数 Internal Link

FastComments WordPress 插件将用 FastComments 提供的系统替换默认的 WordPress 计数机制。我们将发出一次异步请求 每次页面加载,当有一系列带有评论数的文章需要显示时。如果用户禁用 JavaScript,它将回退到默认的 WordPress 计数,因此 不会丧失功能。

最新评论小工具 Internal Link

最新评论 小部件显示整个站点发布的最新评论。它适用于侧边栏、页脚,或任何你想展示最新活动以鼓励进一步阅读的地方。

选项

  • Title(可选):显示在列表上方的标题。默认为 "最新评论"。
  • Count(可选):要显示的评论数量。范围 1 到 50。默认为 5。

如何添加

在文章或页面内

在区块编辑器中,添加一个 Shortcode 区块并粘贴:

最新评论 短代码
Copy Copy
1
2[fastcomments_recent_comments count="5"]
3

count 属性接受介于 1 到 50 之间的任何值。

在侧边栏或页脚(经典主题)

在你的 WordPress 管理后台,转到 外观 > 小工具。在区块插入器中搜索 "FastComments",并选择 FastComments: Recent Comments。将其拖到侧边栏、页眉或页脚区域,然后在小工具面板中配置标题和数量。

在区块主题(全站编辑)中

外观 > 编辑器 下打开 站点编辑器。导航到应显示该小部件的模板部分,插入一个 Legacy Widget 区块,并从下拉菜单中选择 FastComments: Recent Comments

故障排除

仅在完成 FastComments 设置并存储租户 ID 后,该小部件才会渲染。如果小部件区域为空,请在 WordPress 管理后台的 FastComments 中完成设置并重新加载页面。


最近讨论小工具 Internal Link

The Recent Discussions widget displays the pages on your site with the most recent comment activity. It's useful for highlighting threads that are still being added to, so visitors can jump back into active conversations rather than landing on quiet pages.

Options

  • 标题(可选): 列表上方显示的标题。默认值为 "最近讨论"。
  • 数量(可选): 要显示多少个讨论。范围 1 到 50。默认值为 20。

How to Add It

Inside a Post or Page

In the block editor, add a Shortcode block and paste:

近期讨论 短代码
Copy Copy
1
2[fastcomments_recent_discussions count="20"]
3

The count attribute accepts any value between 1 and 50.

Go to 外观 > 小工具 in your WordPress admin. From the block inserter, search for "FastComments" and choose FastComments: Recent Discussions. Drag it into a sidebar, header, or footer area, then configure the title and count from the widget panel.

In a Block Theme (Full Site Editing)

Open the 站点编辑器 under 外观 > 编辑器. Navigate to the template part where the widget should appear, insert a 传统小工具 block, and select FastComments: Recent Discussions from the dropdown.

Troubleshooting

The widget only renders after FastComments setup is complete and a tenant ID is stored. If the widget area is blank, complete setup under FastComments in the WordPress admin and reload the page.

If discussion ordering looks stale, check that the underlying pages have finished syncing in the FastComments 仪表板. The widget reads live data, so freshly imported comments may take a moment to surface.

热门页面小工具 Internal Link

Top Pages 小部件显示网站上评论最多的页面。它有助于向新访客展示互动性最高的内容并增加网站停留时间。

选项

  • 标题(可选):显示在列表上方的标题。默认为 "Top Pages"。

Top Pages 小部件会根据可用数据自动选择布局,并且不接受 count 属性。

如何添加

在文章或页面内

在区块编辑器中,添加一个 Shortcode 区块并粘贴:

Top Pages 简码
Copy Copy
1
2[fastcomments_top_pages]
3

在侧边栏或页脚(经典主题)

在你的 WordPress 管理后台,转到 外观 > 小工具。在区块插入器中搜索 "FastComments",并选择 FastComments: Top Pages。将其拖入侧边栏、页眉或页脚区域,然后在小工具面板中设置标题。

在区块主题(全站编辑)

外观 > 编辑器 下打开 Site Editor。导航到小部件应出现的模板部分,插入一个 Legacy Widget 区块,并从下拉菜单中选择 FastComments: Top Pages

故障排除

只有在完成 FastComments 设置并存储 tenant ID 后,小部件才会渲染。如果小部件区域为空,请在 WordPress 管理后台的 FastComments 中完成设置并重新加载页面。

停用与卸载插件的区别 Internal Link

停用该插件会从您的 WordPress 安装中移除您的 token。您的数据会保留在 FastComments 服务器上,直到您删除您的帐户。若您重新激活该插件,则您将 不得不再次执行初始同步。

卸载该插件会删除与该插件相关的所有数据,但您仍需删除您的 FastComments 帐户,才能删除存放在那里的数据。