Linux 软件免费装
Banner图

D11 Random Quote Loader

开发者 briz_dad
更新时间 2026年5月29日 14:05
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

widget sidebar random inspirational quote

下载

2.0.6 2.3

详情介绍:

D11 Random Quote Loader adds a classic WordPress widget that pulls a random quote from a custom database table each time a page loads. Quotes are managed entirely from within your WordPress dashboard, and the plugin ships with three sample quotes so it works immediately after activation. Features:

安装:

  1. Upload the d11-random-quote-loader folder to /wp-content/plugins/, or install directly through the WordPress plugin screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Appearance > Widgets and drag the D11 Random Quote Loader into your desired sidebar.
  4. Optionally set a widget title and click Save.
  5. Visit Quotes in your admin menu to add, edit, or delete quotes, or to import/export via CSV.

屏幕截图:

  • The Manage Quotes admin page — add, edit, delete, export, and import quotes
  • Configuring the D11 Random Quote Loader widget in the WordPress Widgets screen

升级注意事项:

2.3 Security update: database table renamed to {prefix}d11rql_quotes, CSV import transaction fixed, CSV parser hardened. Existing installs migrate automatically on next page load — no manual steps. 2.2 Internal prefix rename from rqw_ to d11rql_. No database schema changes. Safe drop-in for 2.1. 2.1 Important: shortcode renamed from [random_quote] to [d11rql_random_quote] — update any posts or pages using the old shortcode. 2.0.6 Compatibility update for WordPress 7.0. No code or database changes. 2.0.5 Adds pagination to the admin Manage Quotes page. No database changes. 2.0.4 Adds a database index on the category column. No data changes. 2.0.3 Important fix for caching plugins — random quotes now display correctly for logged-out visitors. 2.0.2 Database hardening: transactional CSV import. Safe drop-in for 2.0.1. 2.0.1 Security and reliability hardening. No database changes. 2.0 Adds quote categories with a safe automatic database upgrade. 1.9 Adds the shortcode. No database changes required. 1.8 Coding standards compliance and full i18n. No database changes required.

常见问题:

How do I add quotes?

Navigate to Quotes in your WordPress admin sidebar. Use the form at the top of the page to add a new quote and an optional author name.

Can I import quotes in bulk?

Yes. Prepare a .csv file with two column headers: quote and author. Use the Import CSV section at the bottom of the Quotes admin page. The import replaces all existing quotes and supports up to 5,000 rows. Files saved from Excel (Windows-1252 encoding) are converted automatically.

How do I export my quotes?

Click Export to CSV on the Quotes admin page. The file downloads immediately.

Can I style the widget output?

Yes. The widget outputs a blockquote.rqw-quote element containing a p.rqw-quote-text and, when an author is present, a cite.rqw-quote-author. Target these CSS classes in your theme's stylesheet.

Will my quotes be deleted if I deactivate the plugin?

No. Deactivating the plugin leaves the database table intact. Quotes are only deleted when you choose Delete on the Plugins screen, which triggers the uninstall routine.

Is the plugin translation-ready?

Yes. All user-facing strings use the d11-random-quote-loader text domain and are ready for translation via .po/.mo files in the /languages/ folder, or via translate.wordpress.org.

What PHP version is required?

PHP 7.4 or higher. PHP 8.0+ is fully supported and recommended.

How do I use the shortcode?

Place [d11rql_random_quote] anywhere in a post or page. Available parameters: [d11rql_random_quote] [d11rql_random_quote title="Daily Quote"] [d11rql_random_quote category="inspiration"] [d11rql_random_quote title="Food for Thought" category="philosophy"] The shortcode outputs a div.rqw-shortcode wrapper containing a blockquote.rqw-shortcode-quote element, and an h3.rqw-shortcode-title when a title is provided.

How do categories work?

Assign a category name to any quote when adding or editing it in the Quotes admin page. Then use [d11rql_random_quote category="your-category"] in a shortcode, or set a category in the widget settings. Quotes with no category assigned are treated as uncategorized and will appear in all category queries as a fallback.

更新日志:

2.3 2.2 2.1 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0 1.9 1.8 1.7 1.6 1.5 1.4 1.3 1.2 1.1 1.0