Linux 软件免费装
Banner图

AJB Random Quote Cards

开发者 andrewjbruce
更新时间 2026年6月23日 02:49
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

quotes shortcode quote of the day gutenberg block random quote

下载

2.1.0

详情介绍:

AJB Random Quote Cards lets you build a library of quotes and display them anywhere on your site as styled cards. Every page load can show a different random quote, or you can use Quote of the Day mode to show the same quote for a full 24 hours before rotating. Quotes are managed through a clean, purpose-built form — no Gutenberg editor confusion. Add your quote text, author, an optional link, assign categories, and mark favourites, all in one clear screen. Key features: Gutenberg block: The native "Random Quote" block (found under Widgets in the block inserter) gives you all the same options as the shortcode, configured directly in the Inspector sidebar — no code needed. Shortcode: The basic shortcode is simply [ajbq_quote]. Use the built-in Shortcode Builder page to generate your shortcode visually with colour pickers and a live preview, then copy it with one click.

安装:

  1. Upload the ajb-random-quote-cards folder to the /wp-content/plugins/ directory, or install directly through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins screen.
  3. Go to AJB Quotes → Add New to add your first quote.
  4. Go to AJB Quotes → Settings to set your global default styles.
  5. Add a quote card to any page or post using the Random Quote block in the block editor, or use the Shortcode Builder tab to generate a shortcode.

屏幕截图:

  • The Add New Quote form — quote text, author, categories, and favourite toggle all in one screen
  • The Global Settings page with colour pickers
  • The Shortcode Builder with colour pickers and live shortcode preview
  • The Gutenberg block Inspector sidebar showing all available controls

升级注意事项:

2.1.0 Adds a proper Add/Edit quote form, mobile responsive cards, and colour pickers in the Shortcode Builder. Recommended for all users. 2.0.0 Quote text is migrated from post_title to post_content automatically on first load after upgrading. No manual steps required.

常见问题:

How do I display a quote on a page?

There are two ways. In the block editor, click the + icon to add a block and search for "Random Quote" — it appears under Widgets. Alternatively, go to AJB Quotes → Shortcode Builder, configure your options, copy the generated shortcode, and paste it into any page, post, or widget.

Can I show a different style card on the same page?

Yes. Every visual setting can be overridden per shortcode or block. Add two shortcodes or blocks to the same page and configure each one differently — they are completely independent.

What is Quote of the Day mode?

When you set mode="daily" in the shortcode, or select "Quote of the Day" in the block, the plugin picks one quote at midnight and shows the same quote to all visitors for the full 24 hours. The selection is cached for performance. You can clear the cache manually from the Settings page.

How do I use Google Fonts?

Go to Settings and type the exact font name from fonts.google.com into the Font Family field — for example Merriweather or Playfair Display. The plugin loads the font automatically. Spelling and capitalisation must match exactly.

Can I import quotes in bulk?

Yes. Go to AJB Quotes → Import / Export and upload a CSV file. Columns in order: Quote, Author, External Link, Category, Is Favourite. Multiple categories can be separated with a pipe | or comma ,. Duplicate quotes are detected and skipped automatically.

Does it work with caching plugins?

Yes. If you use a full-page caching plugin, enable the "Always load assets" option in Settings to ensure the CSS and JS are always available on cached pages.

What happens to my quotes if I delete the plugin?

All quotes, categories, settings, and cached data are removed automatically when you delete the plugin via Plugins → Delete in the WordPress admin. Removing the plugin files via FTP bypasses this cleanup.

更新日志:

2.1.0 2.0.0 1.0.0