Display a Quote

外掛說明

About

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

To display your quote you can use a block or a shortcode.

You can customize your quote display with attributes.

How to use

After installation go to menu item “Quotes”. You can add your quotes here. The title field should be the quote author.

You can organize your quotes with categories. If you’re not using categories, you can disable the categories column via Settings > Writing.

Add the Display a Quote block or the shortcode [daquote] to a page to display your random quote.

You can customize your quote display with attributes.

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 there’s no quote text to be added.

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.

Attributes

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

  • Display quotes from a certain category: quote_cat="your-category-slug"
  • Display quotes from multiple categories: quote_cat="first-category-slug, second-category-slug"
  • Disable 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, don’t add the main shortcode tag or the brackets.

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

Translation

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

More translations 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
  • Block (dashboard)
  • Quotes page (dashboard)

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Display a Quote

常見問題集

How do I set plugin language?

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

Where is the settings page?

Plugin has no settings page. Use the block or shortcode with attributes to make it work.

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.

Can I use the plugin on a ClassicPress website?

Yes you can! Obviously you cannot use the block, so use the shortcode instead.

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〉的開發相關工作。

參與者

〈Display a Quote〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Display a Quote〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

Version 1.3

  • Removed wrong header from main plugin file

Version 1.2

  • Minor changes in code

Version 1.1

  • Changed shortcode name into “daquote”
  • New: setting to disable categories column
  • Minor changes in code

Version 1.0

  • First stable release