[WordPress] 外掛分享: One-liners

首頁外掛目錄 › One-liners
10+
安裝啟用
尚無評分
4017 天前
最後更新
問題解決
WordPress 3.0.1+ v3.1.0 上架:2015-03-16

內容簡介

這是一個自訂文章型別、短碼和小工具插件,可以在您的網站上隨機顯示一句話。可用於隨機引言、笑話等。

使用方法和選項
選項

選項可在「Oneliners」選單下找到。唯一的選項是文章型別的 slug。

小工具

這個小工具只有兩個選項:「標題」和「顯示為永久連結」。

短碼
random-oneliner

短碼可以使用WP_Query() 可以使用的任何參數,除了 post_type。預設是: posts_per_page="1" orderby="rand"

此外,可以將 display_as_link 參數設置為 true,以輸出帶有其永久連結的一次性發言。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.1.0) 或搜尋安裝

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

原文外掛簡介

A custom post type, shortcode, and widget to display random one-line quips on your site. Can be used for random quotes, jokes, etc.
Use and Options
Options
Options are accessible under the ‘Oneliners’ menu. The only option is the slug for the post type.
Widget
The widget has only two options: “Title” and “Display as permalink”.
Shortcode
random-oneliner

The shortcode can take any parameters that the WP_Query() object can take, with the exception of post_type. The defaults are: posts_per_page="1" orderby="rand"
In addition, the display_as_link parameter can be set to true to output the oneliner with it’s permalink.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon