Title: One-liners
Author: Brent Maxwell
Published: <strong>2015 年 3 月 17 日</strong>
Last modified: 2015 年 3 月 20 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/one-liners.svg)

# One-liners

 由 [Brent Maxwell](https://profiles.wordpress.org/thebrent/) 開發

[下載](https://downloads.wordpress.org/plugin/one-liners.3.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/one-liners/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/one-liners/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/one-liners/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/one-liners/#developers)

 [技術支援](https://wordpress.org/support/plugin/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()`](https://codex.wordpress.org/Class_Reference/WP_Query#Parameters)
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.

## 安裝方式

 1. Upload the contents of the zip file to the `/wp-content/plugins/` directory or 
    use the WordPress plugin uploader.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常見問題集

  What is the format and parameters for the shortcode?

random-oneliner

The shortcode can take any parameters that the [`WP_Query()`](https://codex.wordpress.org/Class_Reference/WP_Query#Parameters)
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.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈One-liners〉的開發相關工作。

參與者

 *   [ Brent Maxwell ](https://profiles.wordpress.org/thebrent/)

[將〈One-liners〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/one-liners)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/one-liners/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/one-liners/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/one-liners/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/one-liners/)。

## 變更記錄

#### 3.1.0

 * Added options for custom slug

#### 3.0.0

 * Total and complete update
 * Renamed to One Liners
 * Restructured the base class
 * Created a dedicated widget class
 * Activation/deactivation hook
 * Options for displaying quote as link

#### 2.0.0

 * Updated names and post type cause it was more clear

#### 1.1.1

 * security update on shortcode

#### 1.1.0

 * added initialization hook: thebrent_oneliners_init;
 * added three filter hooks: thebrent_oneliners_random_quote_args, thebrent_oneliners_random_quote,
   thebrent_oneliners_show;
 * added the ability to parametarize the shortcode

#### 1.0.0

 * moved everything into a class; added internationalization capability

#### 0.4.0

 * added widget

#### 0.3.0

 * added shortcode

#### 0.2.2

 * added post type icon

#### 0.2.1

 * added menu icons

#### 0.2.0

 * not sure why it went to 1.1, but it did

#### 0.1.0

 * First stable working version

## 中繼資料

 *  版本 **3.1.0**
 *  最後更新 **12 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.11**
 *  語言
 * [English (US)](https://wordpress.org/plugins/one-liners/)
 * 標籤:
 * [one-liners](https://tw.wordpress.org/plugins/tags/one-liners/)[quotes](https://tw.wordpress.org/plugins/tags/quotes/)
   [shortcodes](https://tw.wordpress.org/plugins/tags/shortcodes/)[widgets](https://tw.wordpress.org/plugins/tags/widgets/)
 *  [進階檢視](https://tw.wordpress.org/plugins/one-liners/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/one-liners/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/one-liners/reviews/)

## 參與者

 *   [ Brent Maxwell ](https://profiles.wordpress.org/thebrent/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/one-liners/)