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

---

Søk i utvidelser

Denne utvidelsen **har ikke blitt testet mot noen av de siste 3 hovedutgivelsene
av WordPress**. Den er kanskje ikke lenger holdt vedlike eller støttet, og den kan
ha kompatibilitetsproblemer med nyeste versjoner av WordPress.

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

# Logic Shortcodes

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

[Last ned](https://downloads.wordpress.org/plugin/logic-shortcodes.zip)

 * [Detaljer](https://nb.wordpress.org/plugins/logic-shortcodes/#description)
 * [Omtaler](https://nb.wordpress.org/plugins/logic-shortcodes/#reviews)
 *  [Installering](https://nb.wordpress.org/plugins/logic-shortcodes/#installation)
 * [Utvikling](https://nb.wordpress.org/plugins/logic-shortcodes/#developers)

 [Brukerstøtte](https://wordpress.org/support/plugin/logic-shortcodes/)

## Beskrivelse

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]

## Installasjon

 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

## Ofte stilte spørsmål

  Where can I use the logic?

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

## Vurderinger

Det er ingen omtaler av denne utvidelsen.

## Bidragsytere og utviklere

«Logic Shortcodes» er programvare med åpen kildekode. Følgende personer har bidratt
til denne utvidelsen:

Bidragsytere

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

[Oversett «Logic Shortcodes» til ditt språk.](https://translate.wordpress.org/projects/wp-plugins/logic-shortcodes)

### Interessert i utvikling?

[Bla gjennom koden](https://plugins.trac.wordpress.org/browser/logic-shortcodes/),
sjekk ut [SVN-repositoriet](https://plugins.svn.wordpress.org/logic-shortcodes/),
eller abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/logic-shortcodes/)
med [RSS](https://plugins.trac.wordpress.org/log/logic-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 1.0

 * Initial upload

## Meta

 *  Versjon **1.0**
 *  Sist oppdatert **10 år siden**
 *  Aktive installasjoner **10+**
 *  WordPress-versjon ** 2.5.0 eller nyere **
 *  Testet opp til **5.4.21**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/logic-shortcodes/)
 * Stikkord
 * [conditional](https://nb.wordpress.org/plugins/tags/conditional/)[logic](https://nb.wordpress.org/plugins/tags/logic/)
   [postmeta](https://nb.wordpress.org/plugins/tags/postmeta/)[taxonomy](https://nb.wordpress.org/plugins/tags/taxonomy/)
   [term](https://nb.wordpress.org/plugins/tags/term/)
 *  [Avansert visning](https://nb.wordpress.org/plugins/logic-shortcodes/advanced/)

## Vurderinger

No reviews have been submitted yet.

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

[Se alle omtalene](https://wordpress.org/support/plugin/logic-shortcodes/reviews/)

## Bidragsytere

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

## Brukerstøtte

Har du noe å si? Trenger du hjelp?

 [Vis brukerstøtteforumet](https://wordpress.org/support/plugin/logic-shortcodes/)