D11 Random Quote Loader

D11 Random Quote Loader

توسط

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:

  • Displays a random quote on every page load using an efficient COUNT + OFFSET strategy (not ORDER BY RAND())
  • Full admin panel — add, edit, and delete quotes without touching code
  • CSV Export — download all your quotes as a spreadsheet-compatible .csv file
  • CSV Import — bulk-upload quotes with automatic encoding detection (UTF-8 and Windows-1252 / Excel), BOM stripping, per-row validation, and a 5,000-row safety limit
  • Clean, semantic HTML output using blockquote, p, and cite elements — easy to style with your theme’s CSS
  • Fully internationalised — every string is ready for translation via the d11-random-quote-loader text domain
  • Safe uninstall — drops the custom table only when the plugin’s own signature column is detected
  • Security hardened — nonces on every form, current_user_can() capability checks, full output escaping, and wp_rand() throughout
  • [d11rql_random_quote] shortcode — insert a random quote into any post, page, or text widget
  • Quote categories — tag quotes and display different sets on different pages or sidebars
  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.

سوالات متداول

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.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
هیچ نسخه‌ای برای این آیتم موجود نیست.
بدون امتیاز

قیمت:

رایگان

نگارش

آخرین انتشار

20 خرداد 1405

آخرین بروزرسانی

1 هفته پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 6.9+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 7.4+

نسخه ها

0 نسخه