One-liners
v3.1.0Brent Maxwell · 2015年3月17日 上架
Custom post type for short oneliners, including a widget and shortcode.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 1,547
- 最近更新
- 2015年3月20日
需要 WordPress 3.0.1+已测试到 4.11
贡献者
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.