[WordPress] 外掛分享: Surbma | Recent Comments Shortcode

首頁外掛目錄 › Surbma | Recent Comments Shortcode
WordPress 外掛 Surbma | Recent Comments Shortcode 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
20+
安裝啟用
尚無評分
1076 天前
最後更新
問題解決
WordPress 5.1+ PHP 7.0+ v2.0 上架:2015-03-02

內容簡介

這是一個簡單的短代碼,可以顯示最新的評論。您可以在文字小工具中使用它,或在啟用所有短代碼的頁面建立器中使用它。

短代碼:

[recent-comments]

[recent-comments number="10" author="" title=""]

此短代碼有七個參數:

1. author__not_in - 要從列表中排除的作者ID。預設值:NULL,以列出所有作者的所有評論。
2. number - 要返回的評論數。留空以返回所有評論。預設值:5。
3. order - 如何排序評論:"ASC" (升序 - 最小至最大) 或 "DESC" (降序 - 最大至最小)。預設值:DESC。
4. author - 您想隱藏作者嗎?只需給一個空參數:author=""。
5. title - 您想隱藏標題嗎?只需給一個空參數:title=""。
6. excerpt - 您想隱藏節錄嗎?只需給一個空參數:excerpt=""。
7. morelink - 您可以指定更多鏈接的文本。您想隱藏更多鏈接嗎?只需給一個空參數:morelink=""。

沒有強制性參數,您可以直接使用短代碼。

重要提示!這個(或任何其他)短代碼只在小工具中工作,如果您或主題啟用了在小工具中使用短代碼。我不提供任何關於如何這麼做的描述,因為已經有很多文章。您可以搜尋以下關鍵詞:WordPress 在小工具中啟用短代碼。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

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

原文外掛簡介

A simple shortcode to display recent comments. You can use it in text widgets or with every shortcode enabled page builder.
The shortcode:
[recent-comments]
[recent-comments number=”10″ author=”” title=””]
There are seven parameters for this shortcode:

author__not_in – Author ID to exclude from the list. Default: NULL to list all comments from all authors.
number – Number of comments to return. Leave blank to return all comments. Default: 5
order – How to sort comments: ‘ASC’ (Ascending – lowest to highest) or ‘DESC’ (Descending – highest to lowest). Default: DESC
author – Do you want to hide the author? Just give an empty parameter: author=””
title – Do you want to hide the title? Just give an empty parameter: title=””
excerpt – Do you want to hide the excerpt? Just give an empty parameter: excerpt=””
morelink – You can specify the text of the more link. Do you want to hide the more link? Just give an empty parameter: morelink=””

There is no mandatory parameter, you can use the shortcode as is.
IMPORTANT! This (or any other) shortcode is working only in a widget, if you or the theme has enabled the use of shortcodes in widgets. I’m not giving any description how you can do it, because there are a lot of posts out there. You can do a search for this: wordpress enable shortcodes in widgets

延伸相關外掛

文章
Filter
Mastodon