Allows display of random quotes via shortcode, a sidebar widget, and/or on the admin page. Quotes can be user-entered, post excerpts or links.
This plugin provides the ability to have randomly selected quotes displayed on the admin page, by using a
shortcode or by using a sidebar widget. The quotes include user-entered quotes, and can optionally include
excerpts from a user-chosen category and can also optionally include links from a user-chosen links category
There also is an option for including the lyrics from “Hello Dolly”. The plugin can be used for random
quotes, rotating testimonials, rotating random affiliate links, or random featured posts. It was inspired by
the Hello Dolly plugin (hello.php) that comes bundled with WordPress.
Technical support for this plugin will be provided via the WordPress plugin forum. Additional support may be
available at plugin’s homepage.
Installation is simple and straight-forward:
nice-quotes.zip
into to the /wp-content/plugins/
directory.Make sure at least one of those posts in that category has an excerpt defined.
The ratio is split evenly between the types of quotes enabled to be displayed. To determine the
probability of a quote type (links, excerpts, and custom quotes) being displayed count the number
of types enabled. The probability is one in however many types are being displayed.
For example, if you have links, excerpts and quotes all enabled then the chances of getting an
excerpt is 1 in 3, the chance of getting a quote is 1 in 3 and the chance of getting a quote is 1
in 3.
Yes it can, just don’t set any custom quotes or check the option to include Hello Dolly lyrics.
Yes it can, just don’t set any custom quotes or check the option to include Hello Dolly lyrics.
Yes, it can. Using a break tag (<br />
) is recommended for multi-line quotes.
Yes they can. Smilies are only included if they are enabled under Settings->Writing.
Quotes have a class of ‘niceQuote’ set on them. To style them add to your stylesheet:
.niceQuote { // css properties here; }
Just use [nicequote]
as a shortcode and a randomly chosen quote will be displayed on the page.
The quote is randomly chosen each time the post or page is loaded.
Yes they are. Each time the quote is loaded (whether on the admin page, a sidebar widget or via
shortcode) the quote will be random with the ratios listed above.
Yes! See pluggable_example.php for sample code to get started.
In order for these quotes to be displayed, it is necessary to check the option to allow plugins to add quotes.
The inspiration for this plugin comes from the Hello Dolly plugin (hello.php) bundled with
Wordpress. I wanted to have the option to have user-defined custom quotes and to have those
quotes appear on the WordPress front-end. I also wanted to optionally highlight a featured
post or be able to show an affiliated link.
[nicequote]
works). tagoverride
which overrides whichever option is set in the options page for which HTML tag to use. This is useful for changing the tag when something should be inline or block. additionalclasses
is used for adding additional CSS classes to the nicequote. See This page for a listing of built-in WordPress classes, for reference.