Qotz

and like us on FB

This page exists as a landing page to support the Qotz WordPress plugin. You may find additional information on our blog by searching the qotz Tag: qotz tag.

Qotz.net was built for the single purpose of making a very simple API available to access our growing database of well over 80,000 quotes. As with many of our basic projects, it was built to make better utilisation of a vacant domain name. The database is updated manually and via automated means on a daily basis – so it’s always growing.

The result of this function will render something like this on your website:

““This country has come to feel the same when Congress is in session as when the baby gets hold of a hammer.” -- Will Rogers“

Because we’re retrieving two individual attributes (text and author) from the XML, it’s easy to style the quote in a manner that’s most fitting.

Shortcode Attributes

cache

We cache the quote for one hour by default (3600 seconds). To cache the result for 30 minutes use cache="1800".

sep

By default we’ll use two hyphens between the quote text and the attribution. To alter, use something like sep="::".

tags

If you choose to alter the basic style applied to the attribution text, use tags="em" (in this case outputting the attribution in italics without the < or >) Each tag must be separated by a comma.

p

To wrap the quote in paragraph tags, use p="1" (false by default).

Usage

Insert the shortcode of [qotz] wherever it is you want your quote to be rendered. The first basic example simply outputs a default quote (in paragraph tags). We’ve used [qotz p="1"].

“This country has come to feel the same when Congress is in session as when the baby gets hold of a hammer.” -- Will Rogers

In the second example we’ll use bold and itallic tags for the attribution (in paragraph). Usage is as follows: [qotz p="1" tags="strong,em"].

“This country has come to feel the same when Congress is in session as when the baby gets hold of a hammer.” -- Will Rogers

In the final example we’ll use bold tags for the attribution (in paragraph), and use a single long dash as the seperator between the text and attribution. Usage is as follows: [qotz p="1" tags="strong" sep="—"].

“This country has come to feel the same when Congress is in session as when the baby gets hold of a hammer.” — Will Rogers

In second and third examples above the quote is wrapped in <blockquote> tags.

Twitter

We send the quotes to Twitter as formatted images. The same text-to-image service is available to our clients and, in a limited way, to users of Viralnetics .

Plugin Title: Qotz
Description: Display a random quote in your WordPress website with shortcode.
Download (downloaded 331 times) | Plugin Page