Title: Optional Content
Author: kylegetson
Published: <strong>15. März 2010</strong>
Last modified: 13. Juni 2011

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

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

# Optional Content

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

[Herunterladen](https://downloads.wordpress.org/plugin/optional-content.1.1.zip)

 * [Details](https://de.wordpress.org/plugins/optional-content/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/optional-content/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/optional-content/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/optional-content/#developers)

 [Support](https://wordpress.org/support/plugin/optional-content/)

## Beschreibung

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)

## Screenshots

[⌊The editor button⌉⌊The editor button⌉[

The editor button

[⌊The window to insert the optional content⌉⌊The window to insert the optional content⌉[

The window to insert the optional content

## Installation

 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.

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„Optional Content“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin
mitgewirkt:

Mitwirkende

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

[Übersetze „Optional Content“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/optional-content)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/optional-content/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/optional-content/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/optional-content/)
per [RSS](https://plugins.trac.wordpress.org/log/optional-content/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 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

## Meta

 *  Version **1.1**
 *  Zuletzt aktualisiert **vor 15 Jahren**
 *  Aktive Installationen **40+**
 *  WordPress-Version ** 2.8.0 oder höher **
 *  Getestet bis **3.1.4**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/optional-content/)
 * Schlagwörter
 * [conditional content](https://de.wordpress.org/plugins/tags/conditional-content/)
   [if](https://de.wordpress.org/plugins/tags/if/)[php](https://de.wordpress.org/plugins/tags/php/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/optional-content/advanced/)

## Bewertungen

 5 von 5 Sternen.

 *  [  2 5-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=1)

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

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/optional-content/reviews/)

## Mitwirkende

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

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/optional-content/)

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](http://getson.info/)