Quotum
v0.7.7Christian Ries · 2026年11月20日 上架
A lightweight library for managing and displaying quotations in WordPress.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 196
- 最近更新
- 2026年11月24日
贡献者
截图




Quotum provides a simple way to store, manage and display quotations without requiring a separate custom post type or complex author taxonomy.
Each quotation contains:
- Quote
- Author
- Source
- Tags
- Active/inactive status
Quotations can be displayed with a shortcode or the Quotum widget.
Features
- Add, edit and delete quotations.
- Activate or deactivate quotations.
- Search quotations, authors, sources and tags.
- Filter by tag and active status.
- Sort the quotation list by Quote, Author, Source, Tags or Status.
- Bulk activate, deactivate or permanently delete quotations.
- Manage tags, including rename and remove.
- Normalize tags when quotations are saved or imported.
- Export all quotations to UTF-8 CSV.
- Import quotations from a Quotum CSV export.
- Detect duplicates using Quote + Author.
- Imported quotations are inactive by default; optionally keep their CSV status or import all as active.
- Display one or several random active quotations with a shortcode.
- Display one or several random active quotations with a widget.
- Filter shortcode quotations by tag.
- Optional author, source and vertical-line display.
- Responsive public quotation display.
- Optional Next Quote link for widgets and shortcodes, without reloading the page.
Try the Sample Quotations
On a fresh installation, the administrator can choose Import sample quotations or No thanks in the welcome notice. The notice is optional and will not reappear after either choice. The Export / Import page always offers a button to import the sample quotations later. Duplicate quotations are skipped. Sample quotations are always imported as inactive and must be activated before they can appear in a widget or shortcode.
An optional CSV file with three sample quotations by Victor Hugo, Dag Hammarskjöld and Franz Kafka is included at examples/sample-quotes.csv.
To try the plugin:
- Go to Quotum > Export / Import in WordPress administration.
- Select
examples/sample-quotes.csvfrom the downloaded plugin package. - Choose Import all as Inactive (the default), then import.
- In Quotum, open the quotation list, select the imported examples, choose Activate, and click Apply.
- Add
[quotum count="3"]to a page to display active quotations.
The examples are not inserted automatically on activation. Importing is additive, and existing quotations are not modified. Quotations with the same Quote + Author are skipped as duplicates.
Shortcode
Use [quotum] to display one random active quotation.
Attribute reference
Attribute
Explanation
count
Number of quotations (1–20). Default: 1.
tags
Comma-separated tags; matches at least one tag. Default: all tags.
show_author
Display author: yes or no. Default: yes.
show_source
Display source: yes or no. Default: yes.
show_line
Display vertical line: yes or no. Default: no.
refresh
Display Next Quote control: yes or no. Default: no.
refresh_text
Custom refresh control text. Default: translated Next quote ».
Use yes and no for boolean attributes. Legacy values 1 and 0, true and false, and on and off are also accepted, regardless of capitalization. Existing author, source and line attributes remain supported; the corresponding show_ attributes take precedence when both are specified.
Examples:
[quotum count="3"][quotum show_author="no" show_source="no" show_line="yes"][quotum count="3" tags="philo,hiking" show_line="yes"][quotum refresh="yes" refresh_text="Next quote »"]
The refresh control loads another active quotation without reloading the page.
Widget
Add the Quotum widget through the WordPress Widgets interface.
The widget supports:
- Title
- Number of quotations (1–20)
- Show author
- Show source
- Show vertical line
- Optional Next Quote link and customizable link text
The widget displays random active quotations.
Widgets, Polylang and Custom Sidebars
Quotum widgets should be created as new widget instances from the Available Widgets section of the WordPress Widgets interface.
If you use the Custom Sidebars plugin, avoid using its Clone function to create additional Quotum widgets. Cloned widget instances may retain or share settings in unexpected ways, especially when combined with language-specific widget visibility.
For multilingual sites using Polylang, create a separate Quotum widget instance for each language and assign the appropriate language through the widget visibility settings.
Customizing the appearance
Add custom CSS through Appearance > Customize > Additional CSS, or the equivalent custom CSS facility in your theme. Do not edit the plugin stylesheet directly, because updates replace it.
CSS selector
Element
.quotum-display
Quotation container
.quotum-display--line
Container with optional vertical line
.quotum-text
Quotation text (blockquote)
.quotum-author
Author attribution
.quotum-source
Source attribution
.quotum-refreshable
Refreshable quotation wrapper
.quotum-refresh-content
Dynamically replaced quotation content
.quotum-refresh
Next Quote button
Example CSS:
.quotum-text { font-size: 1.1em; }
.quotum-author { font-weight: normal; }
.quotum-source { font-size: 0.85em; }
.quotum-display.quotum-display--line {
border-left: 2px solid #888;
padding-left: 24px;
}
.quotum-refresh { font-size: 0.85em; }
Theme styles may also affect blockquotes, including decorative quotation marks.
Import and Export
The Export / Import page is available under Quotum Export / Import.
The CSV format is:
Quote, Author, Source, Tags, Active
Importing is additive. Existing quotations are not deleted or modified.
A quotation is considered a duplicate when its Quote and Author match an existing quotation, ignoring capitalization and differences in whitespace. Source, Tags and Active status are not part of duplicate detection.
Tags are normalized when imported. Whitespace around commas is standardized and duplicate tags within the same quotation are removed case-insensitively.
CSV imports are limited to 5 MB.
Data and privacy
Quotum stores quotations in a dedicated WordPress database table. It does not send quotation data to an external service.
The plugin does not collect analytics or tracking data.
Security
Administrative actions require the appropriate WordPress capability and nonce verification. User-supplied values are sanitized and database operations use WordPress database APIs.
Credits
Idea and development: Christian Ries, Bivels, Luxembourg
WordPress.org: https://profiles.wordpress.org/christian-ries/
ORCID: https://orcid.org/0000-0002-1991-5839
Development assistance: ChatGPT (OpenAI)
Moving from another quotation plugin
Quotum is an independent plugin with its own database table and widget. Export quotations from your previous plugin in a compatible CSV format, install Quotum alongside it, and import the CSV using the option to preserve the CSV active status. Replace old widgets and shortcodes with the Quotum widget and [quotum] shortcode. Deactivate the older plugin only after verifying the new installation.