Lorem Ipsum and Place Holder Image Generator

Two simple shortcodes that will generate Lorem Ipsum and Place Holder images. The Lorem Ipsum shortcode uses loripusm.net API and the placeholder shortcode uses placehold.it.

Author:Adam Graham (profile at wordpress.org)
WordPress version required:3.0.1
WordPress version tested:3.4.2
Plugin version:0.2
Added to WordPress repository:19-11-2012
Last updated:21-11-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:http://bythegram.ca
Total downloads:1 481
Active installs:10+
plugin download
Click to start download

I’m not sure when you will ever need to use it but here are two simple to use shortcodes that will generate Lorem Ipsum and a Place Holder image.
The shortcode [loremipsum] uses loripsum.net API. It is easy to set the options as well.
Add the paragraph attribute to change how many paragraphs are displayed, the length attribute changes the average length (short, medium, long or verylong) and the options attribute allows you to list any of the other options (seperated by ‘/’).
Here is the break down of the availible options:

  • decorate – Add bold, italic and marked text.
  • link – Add links.
  • ul – Add unordered lists.
  • ol – Add numbered lists.
  • dl – Add description lists.
  • bq – Add blockquotes.
  • code – Add code samples.
  • headers – Add headers.
  • allcaps – Use ALL CAPS.
  • prude – Prude version.
  • plaintext – Return plain text, no HTML.

An example of the shortcode with some of the options:

[loremipsum paragraph=”3″ length=”long” options=”decorate/link/code”]

This will generate this content http://loripsum.net/api/3/long/decorate/link/code

The [placeholder] shortcode will generate an image from placehold.it. Add the size attribute to choose your size
(100×100 is the default), the fill and text attributes will take HEX colors. You can also choose the file type (png, jpg, jpeg or gif, gif is the
default) as well as change the words inside the image (the size is the default).

Here is an example:

[placeholder size=”200×200″ fill=”CCCCCC” text=”FFFFFF” words=”Hello WordPress!” type=”png”]

http://placehold.it/200×200/CCCCCC/FFFFFF.png&text=Hello+Wordpress!


FAQ
ChangeLog