Title: Conditional Shortcode
Author: luiscmas
Published: <strong>May 24, 2013</strong>
Last modified: September 10, 2014

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/conditional-shortcode/assets/icon-256x256.png?rev=986245)

# Conditional Shortcode

 By [luiscmas](https://profiles.wordpress.org/luiscmas/)

[Download](https://downloads.wordpress.org/plugin/conditional-shortcode.zip)

 * [Details](https://wordpress.org/plugins/conditional-shortcode/#description)
 * [Reviews](https://wordpress.org/plugins/conditional-shortcode/#reviews)
 *  [Installation](https://wordpress.org/plugins/conditional-shortcode/#installation)
 * [Development](https://wordpress.org/plugins/conditional-shortcode/#developers)

 [Support](https://wordpress.org/support/plugin/conditional-shortcode/)

## Description

Conditional Shortcode. Adds a shortcode gracias_por_donar that retrieves a text 
depending on an integer parameter passed as a request

Shortcode attributes:
 – text0, text1, text2, text3 are texts to print – range1,
range2, range3 are integers (default values 0) – get is the name of the request 
parameter that can be passed as post or get (default value is “amt”)

usage
 [gracias_por_donar text0=”this text is printed if amt value is lower than
range1″ text1=”this text is printed if value amt is between range1 and range2″ text2
=”this text is printed if value amt is between range2 and range3″ text3=”this text
is printed if value amt is greater or equal than range3″ range1=”20″ range2=”50″
range3=”80″ get=”amt”]

for example:

http://mywordpresssite.org/page?amt=30 would print text1 as amt value is between
range1 and range2 (based on usage sample)

## Installation

 1. Unzip plugin files and upload them under your ‘/wp-content/plugins/’ directory.
 2. Resulted names will be: ‘./wp-content/plugins/conditional-shortcode/*’
 3. Activate plugin at “Plugins” administration page.

## FAQ

#### Does it accept floats as request parameter?

It accepts floats as GET/POST parameters, but not for comparison (range values).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Conditional Shortcode” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “Conditional Shortcode” into your language.](https://translate.wordpress.org/projects/wp-plugins/conditional-shortcode)

### Interested in development?

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

## Changelog

#### 0.1

Initial release

## Meta

 *  Version **0.1**
 *  Last updated **12 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **4.0.38**
 * Tags
 * [page](https://wordpress.org/plugins/tags/page/)[pages](https://wordpress.org/plugins/tags/pages/)
   [paypal](https://wordpress.org/plugins/tags/paypal/)[post](https://wordpress.org/plugins/tags/post/)
   [posts](https://wordpress.org/plugins/tags/posts/)[shortcode](https://wordpress.org/plugins/tags/shortcode/)
   [shortcodes](https://wordpress.org/plugins/tags/shortcodes/)
 *  [Advanced View](https://wordpress.org/plugins/conditional-shortcode/advanced/)

## Ratings

No reviews have been submitted yet.

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

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

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/conditional-shortcode/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YNLC5HS5EBW2S)