This plugin enables the usage of [random_quote]
shortcode, which will display random quote from Random Quotes API.
Once downloaded just unzip it and move the folder into the /wp-content/plugins
folder within your WordPress install.
Put [random_quote]
anywhere in Post content area or in custom_html
block of wigets.
Following attributes are supported to customize behaviour of [random_quote]
shortcode:
- length : Provide numeric value to limit display of number of characters in Quote. If trimmed, elipses ... are added at the end.
- class : To replace css class in enclosing html element for Quote. By default blockquote class is added.
- api: If value
false
provided then an API call will be omitted and random quote from local static Quotes list will be shown.
[random_quote api='false' class='strong' length='20']
<?php echo do_shortcode("[random_quote]"); ?>
- Quotable : Quotable is a free, open source quotations API.