Title: Display a Quote
Author: Guido
Published: <strong>2025 年 5 月 9 日</strong>
Last modified: 2026 年 5 月 25 日

---

搜索插件

![](https://ps.w.org/display-a-quote/assets/banner-772x250.png?rev=3290668)

![](https://ps.w.org/display-a-quote/assets/icon-256x256.png?rev=3290668)

# Display a Quote

 作者：[Guido](https://profiles.wordpress.org/guido07111975/)

[下载](https://downloads.wordpress.org/plugin/display-a-quote.2.2.zip)

 * [详情](https://cn.wordpress.org/plugins/display-a-quote/#description)
 * [评价](https://cn.wordpress.org/plugins/display-a-quote/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/display-a-quote/#developers)

 [支持](https://wordpress.org/support/plugin/display-a-quote/)

## 描述

#### About

With this lightweight plugin you can display a random quote at your website.

Main features of the plugin:

 * Free and lightweight
 * Support for Block Editor and Classic Editor
 * Display your random quote with block, shortcode or widget
 * Organize quotes with categories
 * Customize your quote display via the settings page or with attributes
 * Documentation at WP plugin page
 * Active support from developer at WP forum

#### How to use

After installation go to menu item “Quotes” and create some quotes. Use title field
for the quote author and content field for the quote itself.

You can organize your quotes with categories. This makes it possible to display 
multiple blocks, shortcodes or widgets with different kind of quotes.

Go to the editor and add the Display a Quote block or the shortcode `[daquote]` 
to a page. This will display your random quote.

Or go to Appearance > Widgets and use the Display a Quote widget.

It’s also possible to add an image to your quote.

When using the block editor, use the Media & Text block. Or the Image block, if 
the image also contains the quote text.

When using the classic editor, add the image with the “Add media” button next to
the quote text and align it the way you want.

Customize your quote display via the settings page or with attributes.

#### Settings page

The settings page is located at Settings > Display a Quote.

#### Attributes

You can customize your quote display by adding attributes to the block, shortcode
or widget.

 * Display quotes from a certain category: `quote_cat="your-category-slug"`
 * Display quotes from multiple categories: `quote_cat="first-category-slug, second-
   category-slug"`
 * Hide quote author: `quote_author="false"`
 * Change the “no quotes are found” text: `no_quotes_text="your text"`

Example: `[daquote quote_cat="your-category-slug" quote_author="false"]`

When using the block or the widget, don’t add the main shortcode tag or the brackets.

Example: `quote_cat="your-category-slug" quote_author="false"`

The “Hide quote author” attribute will override the settings page.

#### Have a question?

Please take a look at the FAQ section.

#### Translation

Translations are not included, but the plugin supports WordPress language packs.

More [translations](https://translate.wordpress.org/projects/wp-plugins/display-a-quote)
are very welcome!

The translation folder inside this plugin is redundant, but kept for reference.

#### Credits

Without help and support from the WordPress community I was not able to develop 
this plugin, so thank you!

## 屏幕截图

[⌊Quote display⌉⌊Quote display⌉[

Quote display

[⌊Single quote (dashboard)⌉⌊Single quote (dashboard)⌉[

Single quote (dashboard)

[⌊Page with block (dashboard)⌉⌊Page with block (dashboard)⌉[

Page with block (dashboard)

[⌊Widget (dashboard)⌉⌊Widget (dashboard)⌉[

Widget (dashboard)

[⌊Quotes page (dashboard)⌉⌊Quotes page (dashboard)⌉[

Quotes page (dashboard)

[⌊Settings page (dashboard)⌉⌊Settings page (dashboard)⌉[

Settings page (dashboard)

## 区块

该插件提供了 1 个区块.

 *   Display a Quote

## 常见问题

### How do I set plugin language?

The plugin will use the website language, set in Settings > General.

### Can I import quotes?

You can import quotes from a JSON or XML file. Make sure quote author and quote 
text are separate items in your file.

 * Install an import plugin that supports custom post types
 * Choose the (custom) post type daquote/quotes
 * Match fields (title = quote author, description = quote text)
 * Run the import

### Why is the quote display different between themes?

The plugin uses minimal styling and therefore also depends on the styling of your
theme.

### How can I change the layout or colors?

You can use page Additional CSS of the Customizer for your custom styling.

### Why is there no semantic versioning?

The version number won’t give you info about the type of update (major, minor, patch).
You should check the changelog to see whether or not the update is a major or minor
one.

### How can I make a donation?

You like my plugin and want to make a donation? There’s a PayPal donate link at 
my website. Thank you!

### Other questions or comments?

Please open a topic in the WordPress.org support forum for this plugin.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Display a Quote」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Guido ](https://profiles.wordpress.org/guido07111975/)

「Display a Quote」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/display-a-quote/contributors)
为本插件所做的贡献。

[帮助将「Display a Quote」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/display-a-quote)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/display-a-quote/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/display-a-quote/)，或通过[RSS](https://plugins.trac.wordpress.org/log/display-a-quote/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/display-a-quote/)。

## 更新日志

#### Version 2.2

 * Fix: typo
 * Updated file uninstall

#### Version 2.1

 * Textual changes
 * Minor changes in code

#### Version 2.0

 * Minor changes in code

#### Version 1.9

 * Added support for ClassicPress
 * The block will only load in WP 6.3 and higher
 * Reverted the “Requires at least” version to 6.0

#### Version 1.8

 * Minor changes in code

#### Version 1.7

 * New: display your random quote in a widget

#### Version 1.6

 * Full rewrite of the block
 * It now supports the Block API version 3
 * Bumped the “Requires at least” version to 6.3

#### Version 1.5

 * Fixed errors flagged by PCP
 * Minor changes in code

#### Version 1.4

 * New: settings page
 * Added file uninstall (to remove quotes and settings from database)
 * Added date column
 * Minor changes in code

#### Version 1.3

 * Removed wrong header from main plugin file

For all versions please check file changelog.

## 额外信息

 *  版本 **2.2**
 *  最后更新：**3 周前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/display-a-quote/) 和 [English (US)](https://wordpress.org/plugins/display-a-quote/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/display-a-quote)
 * 标签
 * [ClassicPress](https://cn.wordpress.org/plugins/tags/classicpress/)[quotation](https://cn.wordpress.org/plugins/tags/quotation/)
   [quote](https://cn.wordpress.org/plugins/tags/quote/)[quotes](https://cn.wordpress.org/plugins/tags/quotes/)
 *  [高级视图](https://cn.wordpress.org/plugins/display-a-quote/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/display-a-quote/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/display-a-quote/reviews/)

## 贡献者

 *   [ Guido ](https://profiles.wordpress.org/guido07111975/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/display-a-quote/)