Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Quotes Collection

Quotes Collection plugin with Ajax powered Random Quote sidebar widget helps you collect and display your favourite quotes in your WordPress website.

The [quotcoll] shortcode

Quotes can be displayed in a page by placing the shortcode [quotcoll]. This will display all the public quotes ordered by the quote id.

Different attributes can be specified to customize the way the quotes are displayed. Here's the list of attributes:

  • id (integer)

    • For example, [quotcoll id=3] displays a single quote, the id of which is 3. If there is no quote with the id 3, nothing is displayed.
    • This overrides all other attributes. That is, if id attribute is specified, any other attribute specified is ignored.
  • author (string)

    • [quotcoll author="Somebody"] displays all quotes authored by 'Somebody'.
  • source (string)

    • [quotcoll source="Something"] displays all quotes from the source 'Something'.
  • tags (string, comma separated)

    • [quotcoll tags="tag1"] displays all quotes tagged 'tag1'.
    • [quotcoll tags="tag1, tag2, tag3"] displays quotes tagged 'tag1' or 'tag2' or 'tag3', one or more or all of these.
    • [quotcoll author="Somebody" tags="tag1"] displays quotes authored by 'Somebody' AND tagged 'tag1'.
  • orderby (string)

    • When multiple quotes are displayed, the quotes or ordered based on this value. The value can be either of these:
      • 'quote_id' (default)
      • 'author'
      • 'source'
      • 'time_added'
      • 'random'
  • order (string)

    • The value can be either 'ASC' (default) or 'DESC', for ascending and descending order respectively.
    • For example, [quotcoll orderby="time_added" order="DESC"] will display all the quotes in the order of date added, latest first and the earliest last.
  • paging (boolean)

    • The values can be:
      • false (or 0) (default)
      • true (or 1) -- introduces paging. This is used in conjunction with limit_per_page (see below).
    • For example, [quotcoll paging=true limit_per_page=30] will introduce paging with maximum of 30 quotes per page.
    • Note: if orderby="random" is used, paging is ignored.
  • limit_per_page (integer)

    • The maximum number of quotes to be displayed in a page when paging is introduced, as described above.
    • The defualt value is 10. For example, [quotcoll paging=true] will introduce paging with maximum of 10 quotes per page.
  • limit (integer)

    • The maximum number of quotes to be displayed in a single page ie., when paging is 'false'.
    • This can be used, for example, to display just a random quote. [quotcoll orderby="random" limit=1]

The quotescollection_quote() template function

The quotescollection_quote() template function can be used to display a random quote in places other than sidebar.

Usage: <?php quotescollection_quote($arguments); ?>

The list of parameters (arguments) that can be passed on to this function:

  • show_author (boolean)

    • To show/hide the author name
      • true - shows the author name (default)
      • false - hides the author name
  • show_source (boolean)

    • To show/hide the source field
      • true - shows the source
      • false - hides the source (default)
  • ajax_refresh (boolean)

    • To show/hide the 'Next quote' refresh link
      • true - shows the refresh link (default)
      • false - hides the hides the refresh link
  • random (boolean)

    • Refresh the quote in random or sequential order
      • true - random refresh (default)
      • false - sequential, with the latest quote first
  • auto_refresh (boolean/integer)

    • To refresh the quote automatically
      • true - auto refresh every 5 seconds
      • false - auto refresh is off (default)
      • integer - auto refresh is on, and the number provided will be the refresh interval, in seconds.
        • For example, <?php quotescollection_quote( array( 'auto_refresh' => 3 ) ); ?> will refresh the quote every 3 seconds.
  • tags (string)

    • Comma separated list of tags. Only quotes with one or more of these tags will be shown.
  • char_limit (integer)

    • Quotes with number of characters more than this value will be filtered out. This is useful if you don't want to display long quotes using this function. The default value is 500.
  • echo (boolean)

    • To echo or return the quote
      • true - the quote is echoed, ie., printed out
      • false - the quote block is returned as a string, the user can catch the string in a variable and output it wherever they please.

Example usage:

  • <?php quotescollection_quote(); ?>

    • Uses the default values for the parameters. Shows author, hides source, shows the 'Next quote' link, no tags filtering, no character limit, displays the quote.
  • <?php quotescollection_quote( array( 'show_author' => false, 'show_source' => true, 'tags' => 'fun,fav' ) ); ?>

    • Hides author, shows source, only quotes tagged with 'fun' or 'fav' or both are shown. 'Next quote' link is shown (default) and no character limit (default).
  • <?php quotescollection_quote( array( 'ajax_refresh' => false, 'char_limit' => 300 ) ); ?>

    • The 'Next quote' link is not shown, quotes with number of characters greater that 300 are left out.


Versions 1.1 and greater support localization. As of the current version, localization is available in the following languages (code / language / author):

You can translate the plugin in your language if it's not done already. The localization template file (quotes-collection.pot) can be found in the 'languages' folder of the plugin. After translating send the localized files to the plugin author so that it's included in the next update. If you are not sure how to go about translating, contact the plugin author.

Requires: 3.1 or higher
Compatible up to: 4.7-beta4
Last Updated: 3 months ago
Active Installs: 20,000+


4.8 out of 5 stars


0 of 2 support threads in the last two months have been marked resolved.

Got something to say? Need help?


Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,1,1
100,2,2 100,1,1
100,1,1 100,8,8
100,1,1 100,1,1 100,2,2 100,3,3 100,10,10 100,1,1
100,14,14 50,2,1 100,1,1
0,1,0 100,7,7
100,1,1 50,2,1 100,4,4 100,4,4
100,9,9 100,2,2 100,3,3
60,5,3 100,1,1
100,2,2 50,2,1