Title: Logic Shortcodes
Author: Samuel Diethelm
Published: <strong>19.04.2016</strong>
Last modified: 28.04.2016

---

Шукати плагіни

Цей плагін **не перевірявся з останніми 3-ма основними випусками WordPress**. Можливо,
він більше не може розроблятися або підтримуватися, і він може мати проблеми сумісності
при використанні з більш новими версіями 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://uk.wordpress.org/plugins/logic-shortcodes/#description)
 * [Відгуки](https://uk.wordpress.org/plugins/logic-shortcodes/#reviews)
 *  [Встановлення](https://uk.wordpress.org/plugins/logic-shortcodes/#installation)
 * [Розробка](https://uk.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

## Часті питання

  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 або вище **
 *  Tested up to **5.4.19**
 *  Мова
 * [English (US)](https://wordpress.org/plugins/logic-shortcodes/)
 * Позначки
 * [conditional](https://uk.wordpress.org/plugins/tags/conditional/)[logic](https://uk.wordpress.org/plugins/tags/logic/)
   [postmeta](https://uk.wordpress.org/plugins/tags/postmeta/)[taxonomy](https://uk.wordpress.org/plugins/tags/taxonomy/)
   [term](https://uk.wordpress.org/plugins/tags/term/)
 *  [Розширений перегляд](https://uk.wordpress.org/plugins/logic-shortcodes/advanced/)

## Оцінки

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/logic-shortcodes/reviews/)

## Учасники

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

## Підтримка

Є що сказати? Потрібна допомога?

 [Перейти в форум підтримки](https://wordpress.org/support/plugin/logic-shortcodes/)