Title: WP247 Get Option Shortcode
Author: wescleveland
Published: <strong>2015 年 4 月 9 日</strong>
Last modified: 2021 年 8 月 8 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/wp247-get-option-shortcode.svg)

# WP247 Get Option Shortcode

 由 [wescleveland](https://profiles.wordpress.org/wescleveland/) 開發

[下載](https://downloads.wordpress.org/plugin/wp247-get-option-shortcode.1.2.zip)

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

 [技術支援](https://wordpress.org/support/plugin/wp247-get-option-shortcode/)

## 外掛說明

Include WordPress options anywhere shortcodes are accepted.

#### Syntax

[wp247_get_option option=”**desired-option**” default=”**desired-default**” scope
=”**desired-scope**“]

where:

 * **desired-option** is the option to be retrieved from the WordPress wp_options
   table. Default: none
 * **desired-default** is the default value to be returned if the desired option
   does not exist. Default: “”
 * **desired-scope** indicates which type of option is to be retrieved. **scope=”
   site”** will retrieve options using the WordPress **get_site_option** function.
   All other values are ignored and the WordPress **get_option** function will be
   used to retrieve the desired **option** value. Default: “”

#### Examples

Include the WordPress site URL in some text somewhere:

 * This is my site’s URL: [wp247_get_option option=”siteurl”].

Set up a copyright notice in a footer widget:

 * Copyright © [[wp247_get_option option=’blogname’]](https://tw.wordpress.org/plugins/wp247-get-option-shortcode/[wp247_get_option option='siteurl']?output_format=md).
   All rights reserved.

## 安裝方式

In the site’s WordPress backend:

 * Go to Plugins->Add New
 * Search for the plugin ‘wp247 get option shortcode’
 * Click the “Install” button
 * Click on “Activate”

That’s it. You’re now ready to include WordPress options on your site.

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈WP247 Get Option Shortcode〉的開發相關工作。

參與者

 *   [ wescleveland ](https://profiles.wordpress.org/wescleveland/)

[將〈WP247 Get Option Shortcode〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp247-get-option-shortcode)

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

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

## 變更記錄

#### 1.2

Removed Notifications Plugin corequisite
 Fix Settings API for PHP v7 Update Admin
Favorites

#### 1.1

fixed settings API bug
 Added WP247 Extension Notification System interface

#### 1.0.1

Remove namespace use in WP247 Settings API to due errors

#### 1.0

First release on 2015-April-9

## 中繼資料

 *  版本 **1.2**
 *  最後更新 **5 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.8.15**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp247-get-option-shortcode/)
 * 標籤:
 * [get_option](https://tw.wordpress.org/plugins/tags/get_option/)[options](https://tw.wordpress.org/plugins/tags/options/)
   [shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp247-get-option-shortcode/advanced/)

## 評分

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

[撰寫評分](https://wordpress.org/support/plugin/wp247-get-option-shortcode/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wp247-get-option-shortcode/reviews/)

## 參與者

 *   [ wescleveland ](https://profiles.wordpress.org/wescleveland/)

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp247-get-option-shortcode/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RM26LBV2K6NAU)