Title: Logic Shortcodes
Author: Samuel Diethelm
Published: <strong>Aprilo 19, 2016</strong>
Last modified: Aprilo 28, 2016

---

Priserĉi kromprogramojn

Tiu ĉi kromprogramo **ne estis testita en la 3 lastaj gravaj eldonoj de WordPress**.
Eble ĝi ne plu estas prizorgata kaj ĝi eble havus kongruajn problemojn en novaj 
versioj de WordPress.

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

# Logic Shortcodes

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

[Elŝuti](https://downloads.wordpress.org/plugin/logic-shortcodes.zip)

 * [Detaloj](https://eo.wordpress.org/plugins/logic-shortcodes/#description)
 * [Pritaksoj](https://eo.wordpress.org/plugins/logic-shortcodes/#reviews)
 *  [Instalo](https://eo.wordpress.org/plugins/logic-shortcodes/#installation)
 * [Programado](https://eo.wordpress.org/plugins/logic-shortcodes/#developers)

 [Helpo](https://wordpress.org/support/plugin/logic-shortcodes/)

## Priskribo

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]

## Instalo

 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

## OD

  Where can I use the logic?

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

## Pritaksoj

There are no reviews for this plugin.

## Kontribuantoj k. programistoj

“Logic Shortcodes” estas liberkoda programo. La sekvaj homoj kontribuis al la kromprogramo.

Kontribuantoj

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

[Traduki “Logic Shortcodes” en vian lingvon.](https://translate.wordpress.org/projects/wp-plugins/logic-shortcodes)

### Ĉu interesita en programado?

[Browse the code](https://plugins.trac.wordpress.org/browser/logic-shortcodes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/logic-shortcodes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/logic-shortcodes/)
by [RSS](https://plugins.trac.wordpress.org/log/logic-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Ŝanĝprotokolo

#### 1.0

 * Initial upload

## Metadatumoj

 *  Version **1.0**
 *  Last updated **antaŭ 10 jaroj**
 *  Active installations **10+**
 *  WordPress version ** 2.5.0 or higher **
 *  Tested up to **5.4.19**
 *  Language
 * [English (US)](https://wordpress.org/plugins/logic-shortcodes/)
 * Tags
 * [conditional](https://eo.wordpress.org/plugins/tags/conditional/)[logic](https://eo.wordpress.org/plugins/tags/logic/)
   [postmeta](https://eo.wordpress.org/plugins/tags/postmeta/)[taxonomy](https://eo.wordpress.org/plugins/tags/taxonomy/)
   [term](https://eo.wordpress.org/plugins/tags/term/)
 *  [Altnivela rigardo](https://eo.wordpress.org/plugins/logic-shortcodes/advanced/)

## Pritaksoj

No reviews have been submitted yet.

[Aldoni mian recenzon](https://wordpress.org/support/plugin/logic-shortcodes/reviews/#new-post)

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

## Kontribuantoj

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

## Helpo

Got something to say? Need help?

 [Vidi helpforumon](https://wordpress.org/support/plugin/logic-shortcodes/)