A custom post type, shortcode, and widget to display random one-line quips on your site. Can be used for random quotes, jokes, etc.
Options are accessible under the ‘Oneliners’ menu. The only option is the slug for the post type.
The widget has only two options: “Title” and “Display as permalink”.
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.