Conditional Shortcode

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

Author:Luis Mas (profile at wordpress.org)
WordPress version required:3.0.1
WordPress version tested:4.0
Plugin version:0.1
Added to WordPress repository:24-05-2013
Last updated:10-09-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/luiscmas/conditional-short...
Total downloads:930
plugin download
Click to start download

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)


FAQ
ChangeLog