Title: Optional Content
Author: kylegetson
Published: <strong>15 maart 2010</strong>
Last modified: 13 juni 2011

---

Plugins zoeken

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

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

# Optional Content

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

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

 * [Details](https://nl.wordpress.org/plugins/optional-content/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/optional-content/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/optional-content/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/optional-content/#developers)

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

## Beschrijving

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)

## Schermafbeeldingen

[⌊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

## Installatie

 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.

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“Optional Content” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

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

[Vertaal “Optional Content” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/optional-content)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/optional-content/), 
haal de [SVN repository](https://plugins.svn.wordpress.org/optional-content/) op,
of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/optional-content/)
via [RSS](https://plugins.trac.wordpress.org/log/optional-content/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

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

 *  Versie **1.1**
 *  Laatst geüpdatet **15 jaar geleden**
 *  Actieve installaties **40+**
 *  WordPress versie ** 2.8.0 of nieuwer **
 *  Getest t/m **3.1.4**
 *  Taal
 * [English (US)](https://wordpress.org/plugins/optional-content/)
 * Tags
 * [conditional content](https://nl.wordpress.org/plugins/tags/conditional-content/)
   [if](https://nl.wordpress.org/plugins/tags/if/)[php](https://nl.wordpress.org/plugins/tags/php/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/optional-content/advanced/)

## Waarderingen

 5 van 5 sterren.

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

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

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/optional-content/reviews/)

## Bijdragers

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

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/optional-content/)

## Doneren

Wil je de groei van deze plugin ondersteunen?

 [ Doneer aan deze plugin ](http://getson.info/)