One Liners

Custom post type for short oneliners, including a widget and shortcode.

Author:Brent Maxwell (profile at wordpress.org)
WordPress version required:3.0.1
WordPress version tested:4.11
Plugin version:3.1.0
Added to WordPress repository:17-03-2015
Last updated:20-03-2015
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, %:0
Rated by:0
Plugin URI:http://thebrent.net/projects/one-liners/
Total downloads:825
Active installs:10+
plugin download
Click to start download

A custom post type, shortcode, and widget to display random one-line quips on your site. Can be used for random quotes, jokes, etc.

Use and Options

Options

Options are accessible under the ‘Oneliners’ menu. The only option is the slug for the post type.

Widget

The widget has only two options: “Title” and “Display as permalink”.

Shortcode

random-oneliner

The shortcode can take any parameters that the WP_Query() object can take, with the exception of post_type. The defaults are: posts_per_page="1" orderby="rand"

In addition, the display_as_link parameter can be set to true to output the oneliner with it’s permalink.


FAQ
ChangeLog