Australia's Leading Digital Marketing Experts. T. 1300 235 433  |  Aggregation Enquires Welcome

Aviation Quotes

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

The aviation quotes database was built to support a need on our FLIGHT website. 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:

"“Being an airline pilot would be great if you didn't have to go on all those trips.”"

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. If there's no attribution supplied nothing will be displayed.

p

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

Usage

Insert the shortcode of [aviationquote] wherever it is you want your quote to be rendered. Note that the attribution text will only render if it exists.

The first basic example simply outputs a default quote (in paragraph tags). We've used [aviationquote p="1"].

“Being an airline pilot would be great if you didn't have to go on all those trips.”

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

“Being an airline pilot would be great if you didn't have to go on all those trips.”

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

“Being an airline pilot would be great if you didn't have to go on all those trips.”

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

Plugin Title: Aviation Quotes
Description: Display an aviation quote in your WordPress website with shortcode.
Download (downloaded times) | Plugin Page