Title: Optional Content
Author: kylegetson
Published: <strong>2010年3月15日</strong>
Last modified: 2011年6月13日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

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

# Optional Content

 作者: [kylegetson](https://profiles.wordpress.org/kylegetson/)

[ダウンロード](https://downloads.wordpress.org/plugin/optional-content.1.1.zip)

 * [詳細](https://ja.wordpress.org/plugins/optional-content/#description)
 * [レビュー](https://ja.wordpress.org/plugins/optional-content/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/optional-content/#installation)
 * [開発](https://ja.wordpress.org/plugins/optional-content/#developers)

 [サポート](https://wordpress.org/support/plugin/optional-content/)

## 説明

This plugin allows you to show or hide content on a page or post based on a simple
shortcode. You don’t need PHP knowledge, or a PHP enabling plugin. Simply use a 
button on the WYSIWYG editor to select under what condition you would like the content
displayed. Fast, simple, and safe. Keep your template files clean by removing your
PHP logic. Now allows shortcodes inside of the conditional content.

Display content based on the following conditions:

 * Manual on/off setting
 * Before, after, or between specific times (repeated daily)
 * Before, after or between specific dates
 * Based on if the visitor is logged in
 * Based on a specific user (by user id) or multiple users (by user id)
 * Based on GET variables (variables passed on the URL in the form of http://www.
   example.com/about/?test=value where the variable is ‘test’)
 * Based on POST variables (variables sent via forms)
 * Based on REQUEST variables (either GET or POST variables)

## スクリーンショット

 * [[
 * The editor button
 * [[
 * The window to insert the optional content

## インストール

 1. Upload the folder `optional-content` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the ‘[if]’ button now on the tinyMCE WYSIWYG editor.

## FAQ

  I don’t see a new button on the editor?

Try clicking the ‘show/hide kitchen sink’ button. This will display additional buttons,
and may reveal the ‘[if]’ button. If not, clear your browser cache and try again.

  Can I do a date AND a time?

Yes, this plugin uses the PHP function strtotime(), so you can do date and time 
like ‘2010-12-31 23:59:59’ in the ‘date’ field for 12:59:59PM on Dec. 31 2010. See
the PHP documentation for strtotime() for more examples of what you can use.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Optional Content はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

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

[“Optional Content” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/optional-content)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/optional-content/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/optional-content/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/optional-content/)を [RSS](https://plugins.trac.wordpress.org/log/optional-content/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.1

Fixed issues with selecting a user
 Added the ability for multiple users Now allows
for shortcodes inside shortcodes

#### 1.0.0

 * Plugin functional and tested by a small group of volunteers

## メタ

 *  バージョン **1.1**
 *  最終更新日 **15年前**
 *  有効インストール数 **40+**
 *  WordPress バージョン ** 2.8.0またはそれ以降 **
 *  検証済み最新バージョン: **3.1.4**
 *  言語
 * [English (US)](https://wordpress.org/plugins/optional-content/)
 * タグ
 * [conditional content](https://ja.wordpress.org/plugins/tags/conditional-content/)
   [if](https://ja.wordpress.org/plugins/tags/if/)[php](https://ja.wordpress.org/plugins/tags/php/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/optional-content/advanced/)

## 評価

 5つ星中5つ星

 *  [  2 5-星レビュー     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=1)

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/optional-content/reviews/)

## 貢献者

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

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/optional-content/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](http://getson.info/)