跳到内容

Simple Quotes

v2.0

jernst · 2011年2月22日 上架

Just a simple project that flexibly prints random quotes anywhere on a wordpress page. Works with or without widgets. Comes with an options pages that …

正在使用
20+
评分
5.0 / 5
累计下载
5,128
最近更新
2014年4月17日
3 条评价需要 WordPress 3.0+已测试到 3.9.40

贡献者

截图

An example of the quotes displayed on a page header
An example of the quotes displayed on a page header
The administrative interface for a adding/editing quote
The administrative interface for a adding/editing quote
The options page for configuration the look of the quote
The options page for configuration the look of the quote
The list of all available quotes
The list of all available quotes

Just a simple project that prints random quotes anywhere on a wordpress page. Essentially it is just a custom post type that includes the quote and the author. A single function call returns the random quote which can then be displayed wherever you like on your pages.

To use the plugin just add the quotes using the WordPress admin interface on your site. Then to get the quotes to display on the site, call quote_dispaly_random() to display a default styling or the quote_random() function which will return an associative array with both the content, author and date in it. For more details see www.jasonernst.com/projects/quotes/ for more details.

Update: As of version 1.05 it is also possible to use the widget system to display a random quote. You can style the quote by creating css for the “quote” class.

The reason why this format was chosen, was to create the most flexibility for use in a template. It is easy to stick these inside of a div or apply css styling to it.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums