[WordPress] 外掛分享: Better Recent Comments

首頁外掛目錄 › Better Recent Comments
WordPress 外掛 Better Recent Comments 的封面圖片
3,000+
安裝啟用
★★★★
4.6/5 分(17 則評價)
720 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.2.0 上架:2016-02-01

內容簡介

預設的「近期留言」小工具比較有限。「Better Recent Comments」改進了這一點,提供了一個更靈活的小工具,可選擇顯示使用者的實際留言,以及顯示頭像和顯示或隱藏留言日期。

除了小工具外,還有一個方便的短代碼可用於顯示您的最新留言。如果您需要顯示留言到其他位置,例如在首頁,則這很有用。只需添加短代碼[better_recent_comments]。

還不止這些!該外掛也支持 WPML,這意味著留言將被限制在當前語言中。預設的 WordPress 小工具會列出所有最新留言,不論語言如何,因此您可能會在英文站點的側欄中看到德語文章的留言。Better Recent Comments 可解決此問題,並確保留言僅屬於當前語言。

目前可提供西班牙語、法語和意大利語翻譯。

在我們的「知識庫」中查看完整的外掛文檔。

短代碼選項:

format – 每條最新留言的格式。此選項使用「佔位符」,在顯示留言時將用實際數據代替。詳細信息請參閱「常見問題」。
number – 要顯示的留言數。預設值:5 條留言。
date_format – 要使用的日期和時間格式。像 WordPress 一樣,它使用 PHP 日期格式。預設為「M j, H:i」。請參閱此速查表以獲得完整的日期和時間選項。
avatar_size – 頭像的大小(以像素為單位)。僅在您的留言格式中包括 {avatar} 時使用(參見「格式」選項)。預設值:50。
post_status – 檢索留言的文章狀態。預設為「publish」。可以是單個狀態,也可以是逗號分隔的列表,或者是「any」以顯示所有文章狀態的留言。
post_type – 檢索留言的文章類型。接受單個文章類型(例如「文章」)或「任何」以顯示所有文章類型的留言。預設值:「任何」。
excerpts – 設置為「true」以顯示留言的摘要(限制為 20 個字),或設置為「false」以顯示完整留言。預設值:true。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Better Recent Comments」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The default Recent Comments widget is somewhat limited. Better Recent Comments improves on this by providing a more flexible widget with options to show the user’s actual comment, as well as show avatars and the ability to show or hide the comment date.
As well as the widget, there’s a handy shortcode you can use to display your recent comments. This is useful if you need to display comments somewhere other than your sidebar or footer, such as on your homepage. Simply add the shortcode [better_recent_comments].
That’s not all! The plugin is also WPML compatible, which means that the comments will be restricted to those in the current language. The default WordPress widget will list all recent comments, regardless of language, so you might end up with comments for German-language posts in the sidebar of your English site. Better Recent Comments solves this and makes sure the comments are for the current language only.
Translations currently provided in Spanish, French and Italian.
View the full plugin documentation in our Knowledge Base.
Options available with the shortcode:

format – the format of each recent comment. This option uses ‘placeholders’ which are substituted with the actual data when the comments are displayed. See the FAQs for details.
number – the number of comments to display. Default: 5 comments
date_format – the date and time format to use. Like WordPress, this uses a PHP date format. It defaults to ‘M j, H:i’. See this cheat sheet for a full list of date and time options.
avatar_size – the size of the avatar in pixels. Only used if you have included {avatar} in your comment format (see ‘format’ option). Default: 50
post_status – the status of posts to retrieve comments for. Defaults to ‘publish’. Can be a single status or a comma-separated list, or ‘any’ to show comments for all post statuses.
post_type – the post type to retrieve comments for. Accepts a single or multiple post types (e.g. ‘post’ or ‘post, dlp_document’) or ‘any’ to show comments for all post types. Default: ‘any’
excerpts – set to ‘true’ to show an excerpt of the comment (limited to 20 words), or ‘false’ to show the full comment. Default: true
replies – set to ‘true’ to also show responses to comments, or ‘false’ to only see the top level comments. Default: true

延伸相關外掛

文章
Filter
Mastodon