Title: Logic Shortcodes
Author: Samuel Diethelm
Published: <strong>2016年4月19日</strong>
Last modified: 2016年4月28日

---

プラグインを検索

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

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

# Logic Shortcodes

 作者: [Samuel Diethelm](https://profiles.wordpress.org/samueldiethelm/)

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

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

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

## 説明

This plugin enables the use of [if] shortcodes to work with conditional logic based
on the existence of post meta or taxonomy terms on posts and pages.

Please consider taking a minute to rate the plugin or let me know any feature request.
Thanks!

#### Taxonomy

With conditional logic for taxonomy terms, you can use names, slugs or term_ids:

 * [if taxonomy=”category” slug=”cars”]Content to show[/if]
 * [if taxonomy=”category” name=”Cars”]Content to show[/if]
 * [if taxonomy=”category” id=”123″]Content to show[/if]

#### Post Meta

Post meta (or custom field) logic can be used to check if a certain meta_key AND
meta_value combination are present or just a meta_key:

 * [if postmeta=”car_model”]Content to show if car model info is present[/if]
 * [if postmeta=”car_model” value=”Tesla Model S”]Content to show if car model is
   Tesla Model S[/if]

## インストール

 1. Upload the plugin files to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

## FAQ

  Where can I use the logic?

Anywhere where shortcodes are accepted and a post or page is being displayed.

## 評価

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

## 貢献者と開発者

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

貢献者

 *   [ Samuel Diethelm ](https://profiles.wordpress.org/samueldiethelm/)

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

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

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

## 変更履歴

#### 1.0

 * Initial upload

## メタ

 *  バージョン **1.0**
 *  最終更新日 **10年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 2.5.0またはそれ以降 **
 *  検証済み最新バージョン: **5.4.19**
 *  言語
 * [English (US)](https://wordpress.org/plugins/logic-shortcodes/)
 * タグ
 * [conditional](https://ja.wordpress.org/plugins/tags/conditional/)[logic](https://ja.wordpress.org/plugins/tags/logic/)
   [postmeta](https://ja.wordpress.org/plugins/tags/postmeta/)[taxonomy](https://ja.wordpress.org/plugins/tags/taxonomy/)
   [term](https://ja.wordpress.org/plugins/tags/term/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/logic-shortcodes/advanced/)

## 評価

レビューはまだ送信されていません。

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

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

## 貢献者

 *   [ Samuel Diethelm ](https://profiles.wordpress.org/samueldiethelm/)

## サポート

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

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