WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't 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.

jqs-random

A simple random phrase plugin that can be used anywhere, via PHP or shortcodes.

Usage

The plugin can be called via three methods, two are for themes, and the third is for within a post/page's content.

Theme methods:

<?php jqs_random(); ?>
<?php jqs_get_random(); ?>

Both functions take one attribute $options which is an array that may contain any of the following boolean values:

"stripwhitespace" => 0, "addslashes" => 0, "htmlspecialchars" => 0

For inclusion within a post or page, use the new Shortcode;

[jqs-random]

and once again any of the three attributes can be added:

[jqs-random stripwhitespace="0" addslashes="0" htmlspecialchars="0"]

The three attributes are modifiers to the output so that you can always put the data where you want:

  • stripwhitespace -- will replace all spaces with underscores.
  • addslashes -- will return data after it is passed thru PHP's addslashes() function.
  • htmlspecialchars -- will return data after is is pass thru PHP's htmlspecialchars() function.

Requires: 2.5 or higher
Compatible up to: 2.5
Last Updated: 2008-6-13
Downloads: 399

Ratings

1 star
1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0