Insults

and like us on FB

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

The Dickless website (apologies for the poor choice of domain) is nothing but a data source of thousands of insults. Some good… some (read: most) not so much. This post will show you how to access a random insult with us of the Insults WordPress plugin.

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

You're so fat if you weighed five more pounds, you could get group insurance!

Shortcode Attributes

cache

We cache the quote for one hour by default (3600 seconds). To cache the result for 30 minutes use cache="1800". If the API isn’t available for any reason, we wait a defined period before trying again – usually 2 minutes. This can be altered (via temp in the shortcode function or in the plugin. You normally shouldn’t have to worry about this feature or the API ever being offline.

tags

If you choose to alter the basic style applied to the text, use tags="strong" (in this case outputting the text as bold) Each tag must be separated by a comma.

p

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

Usage

Insert the shortcode of [insult] 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 [insult p="1"].

You're so fat if you weighed five more pounds, you could get group insurance!

In the second example we’ll use strong tags for the the text (in a paragraph). Usage is as follows: [insult p="1" tags="strong"].

You're so fat if you weighed five more pounds, you could get group insurance!

In both examples above the quote is wrapped in <blockquote> tags.

Plugin Title: Insults
Description: Display a random insult in your WordPress website with shortcode.
Download (downloaded 253 times) | Plugin Page