Optional Content

Optional Content Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 5,082 downloads
Optional Content Icon

Try plugin: Optional Content

We'll create fresh WordPress site with Optional Content installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Optional Content

This plugin makes it easy to conditionally display content. No more if statements in your template files!

2


0


0


0


0

updated: 13 years ago
since: 14 years ago
author: Kyle Getson

Description

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)