Title: Simple Settings
Author: Jimmy K.
Published: <strong>2013 年 12 月 6 日</strong>
Last modified: 2013 年 12 月 9 日

---

搜尋外掛

![](https://ps.w.org/simple-settings/assets/banner-772x250.jpg?rev=816365)

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

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

# Simple Settings

 由 [Jimmy K.](https://profiles.wordpress.org/jklatt86/) 開發

[下載](https://downloads.wordpress.org/plugin/simple-settings.zip)

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

 [技術支援](https://wordpress.org/support/plugin/simple-settings/)

## 外掛說明

A plugin to create, modify, and retrieve basic settings for use in templates,
 posts,
and pages. This plugin also supports token replacement in template files as well
as via the WYSIWYG.

This plugin is especially useful if you would like to store basic settings for
 
your site but don’t want or don’t know how to write the code to do it yourself. 
Simply create settings for anything you would like to display on your site, add 
the appropriate function calls (see [FAQ](https://wordpress.org/plugins/simple-settings/faq/))
in your template (or use token replacement via the WYSIWYG), and you’ll have your
settings working with your site in no time!

#### Common uses for this plugin:

 * Displaying contact information (Phone, Fax, Address, etc),
 * Displaying a temporary message or daily special,
 * Turning features on and off on the fly,
 * Displaying your social network links,
 * Displaying your current favorite color,
 * … or any other content that may change over time.
 * Meow.

## 螢幕擷圖

 * [[
 * The admin interface showing all the settings that have been created.
 * [[
 * The admin interface showing sample search results.
 * [[
 * The admin interface showing a setting being edited.
 * [[
 * The admin interface showing an example of token replacement via the WYSIWYG.

## 安裝方式

 1. Upload the `ilm-simple-settings` plugin directory to the `/wp-content/plugins/`
    
    directory on your server.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常見問題集

  How do I make a new setting?

To make a new setting, click `Simple Settings` in the WordPress admin menu,
 then
click `Add New`. Give your setting a name, type, and content, then click `Publish`.

  How do I delete a setting?

To delete a setting, click on the setting name to edit it, then click `Move to
 
Trash
 on the next screen.

  What types of settings can I make?

Currently, this plugin supports the ability to create `text` and `boolean`
 settings.
Text settings will return a string and boolean settings will return true or false.

  Can my setting include HTML and JavaScript?

Yes it can! It’s also handy for adding third-party JavaScript widgets to posts
 
or pages.

  What is a “slug”?

A slug is a unique computer-readable name for each setting that is created.
 Slugs
are used by the `get_setting()` function and by token replacement.

  How do I use a setting in my template?

To use a setting in your template, first create the setting (i.e. “My Setting”),

then paste the code below into your template. _Remember to change the example slug
to the one for your setting!

    ```
    <?php echo get_setting('my_setting'); ?>
    ```

Alternatively, you can also use the value of a setting to affect the output of
 
a page. For example:

    ```
    <?php

        if (get_setting('do_something') == true) {
            echo 'Doing something!';
        } else {
            echo 'Not doing something.';
        }

    ?>
    ```

  How do I use token replacement via the WYSIWYG?

To use token replacement via the WYSIWYG, first create the setting (i.e. “My
 Setting”),
edit the page you would like your setting to be displayed on, paste the text below
into the WYSIWYG, and save. The plugin will automatically replace the token with
the corresponding setting value when viewing the page. It’s as easy as that! _Remember
to change the example slug to the one for your setting!

    ```
    {my_setting}
    ```

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Jimmy K. ](https://profiles.wordpress.org/jklatt86/)

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

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

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

## 變更記錄

#### 1.0

The initial release of this plugin.

#### 1.1

Added appropriate documentation. Updated the readme.

#### 1.2

Fixed getSetting() not returning correct boolean value.

## 中繼資料

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

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/simple-settings/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/simple-settings/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/simple-settings/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/simple-settings/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/simple-settings/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-settings/reviews/#new-post)

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

## 參與者

 *   [ Jimmy K. ](https://profiles.wordpress.org/jklatt86/)

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](http://www.ilikemustard.com)