Perfect Quotes – a WordPress plugin

Recently a family member asked me to help set up a WordPress site so they could start blogging and share with the world their thoughts about life. One of the things requested was a plugin that would allow them to put a quote they liked onto the sidebar. It seemed like a simple enough request. So I headed off to wordpress.org to look at their vast plugin library.

What started out as a simple plugin request, turned out to be somewhat of a disheartening dead end. Don’t get me wrong; there are tons of quote plugins out there. I just wasn’t able to find anything that was simple and straight forward.

Most of the plugins pulled quotes from external websites and displayed random quotes. Others were poorly written and confusing to implement, much less use. Here is what I wanted: to enter whatever quote I want, to add an author or source of the quote, and to show that quote where I want, when I want, and how I want. And then I had a thought, “I’ll just make it myself!”. And Perfect Quotes was born.

About Perfect Quotes

Perfect Quotes is a simple plugin designed to do only one thing: to display your quote where you want it, nothing more, nothing less. It is built around custom post types, which allows every quote you ever have added to be archived in the WordPress database. You’ll never wish you could remember that one quote, it’s still there! It has a widget function, so you can put the quotes on the sidebar of your site, or maybe the footer. It also has a shortcode which allows you to place whichever quote you want into and blog post or page you want! Let’s get started and put your quotes onto your site!

Perfect Quote Plugin Installation

The easiest way is to navigate in your WordPress admin area to Plugins > Add New. In the plugin search bar type in “Perfect Quotes” and press enter. Once you locate the plugin, install it. It will automatically download the plugin into your WordPress application. When it is complete, click Activate Plugin and your on your way!

How to write a Perfect Quote

You will notice a new menu at the bottom of the left hand menu that looks like this

Click on Add new and you will be taken to a new page where you can add your quote. Type in your new quote like this:

If you want to add an author or source for you quote you will need to use what is called a custom field. In the Name field type in “perfect_quote_author”. And in the Value field type in the name of the author or source. Then click Add Custom Field. Enter the info like this:

Once that is complete we are ready to save the quote. You can also have this post publish at a later date if you so choose, or you can save it as a draft. Your choice. Whatever you choose, click either the Save Draft button or the Publish button when you are done.

You have now entered your first quote. I am sure it won’t be your last!

The Perfect Quotes Widget

If you want to add the widget to your sidebar or other area on your site, follow the instructions here to accomplish just that. First you will want to navigate to the Widgets area. Look at this menu to see what I mean:

Once in the the Widgets area, drag the Perfect Quotes widget from the main area to the sidebar or area of you choice. For this example, I dragged it to the Main Sidebar.

After you have placed it in the area you chose, click the down arrow on the right side of the widget to show a few options. You can give it a title of your choice. If you leave it blank, it will default to Perfect Quotes.Here you can see I chose to title mine My Quotes. You can also enter how many quotes you want displayed at a time. The default for this is only one quote. Keep in mind, that this widget will always grab the newest quote first and work its way back. Then click Save and go view your site!

Here is what the finished Perfect Quotes widget looks like on the site.

Perfect Quotes Shortcode

What is a shortcode you might ask? It is a simple “code” or set of instructions that WordPress understands and which tells WordPress to do something. In this case, we are going to tell WordPress to grab a particular quote so we can show it in a post or on a page.

It is really quite simple. On the Perfect Quotes custom post overview page, find the quote you are looking for. Then locate the column title Shortcode and copy the corresponding short code. It should look something like [perfect_quotes id="54"].

 

Once you have copied this, take it over to the post or page of your choice, or add a new post or page, then paste the shortcode where you would like it to appear.

 

Then Update or Publish your post or page, and go view it to see how it looks!

Congratulations! That’s all there is to it! Happy Perfect Quoting!

177 Responses to “Perfect Quotes – a WordPress plugin”

  1. brandon says:

    Roy,
    I will have to look into it, but most likely it is because either some new plugin has been installed which is conflicting with the quotes plugin, or, more likely, the new WP core has been updated with new functions, and some that the quote plugin is using have been deprecated. I will have to debug it and see if this is the case. And WP 3.8 is just around the corner, which will change more things, too.

  2. mauricio says:

    Hi…

    I’d like to know that this plugin works in multilanguages wordpress sites? I’ll use wpml.

    Thanks you!

  3. brandon says:

    Mauricio,
    I honestly don’t know if it works using wpml. If you are willing to try it out and let me know, I would appreciate that. If not, no worries.

  4. Antoninf says:

    Hi, I’m just using your plugin and I would like to know how do I can format the ‘author’ and where ‘tag’ so they can keep in the same line. I’m using ‘where’ for the url from where I picked the quote inside my posts. Thanks in advance for the answer and Happy New Year!

  5. brandon says:

    Antoninf,
    You can format the tag, but you would have to get into the code to move things around. At this point I haven’t created a more flexible layout solution yet.

  6. Bill K says:

    Brandon,

    Very nice plugin. Any plans to make the quotes rotate randomly ?

  7. brandon says:

    Bill,
    No, I don’t have any plans to make them rotate. It would require me to introduce a jquery slider or similar which I don’t want to do for this plugin. It would introduce another level of complexity that I am trying to avoid.

  8. Peggy says:

    I really wish this rotated an assortment of quotes. That’s what I’m looking for and is disheartening that I can’t find a good one. :(

  9. brandon says:

    Peggy,
    It just requires the use of a rotator or slider type plugin. A great one to use is bxSlider. Unfortunately I have no plans to include this feature at this point.

  10. JG Breeden says:

    Looks good, but it messed up my Widgets menu. Everything alphabetically after the Perfect Quotes-Single Quote button (Recent Comments, etc) is showing like a child item, and is no longer usable as a widget. Using WP 3.8.1

  11. brandon says:

    JG,
    Well that’s not good. I will have to see what methods have been deprecated with the release of WP 3.8 and fix those. Thanks for the heads up!

  12. Dan says:

    Hi Brandon!!
    Great plugin!! Been looking at it for a bit and finally installed it on our dev site today… I share your initial frustration lol, I too was looking for something like this last year, and surprisingly there was NOTHING like it. :-)
    So glad you added quote author to the quote post page.
    There are a couple of suggestions I was hoping to get your thoughts on…
    1.) would it be possible to change the “post type slug” to “/quotes/” instead of the current “/perfect-quotes/”?
    2.) On the post edit page, would it be possible to change the quote itself to be a textarea instead of a single wide input text line? Even a 3-row textarea would be perfect… as many quotes are longer than the single line, and it’s awkward scrolling back and forth in the single input box. :-)
    3.) the quote post page (when you click “view quote”) displays the quote, but does not show the author… also the layout of that post isn’t quite as appealing as the widget layout is… is it possible to include the author on that page, and make the layout look a bit more like the widget? Also I can find/share a screenshot of a nice individual quote page layout we’d come up with a while back if it helps. :-)
    Thanks!!
    Dan

  13. anthony says:

    hello
    thank you for this plugin. i have a question that I’m not sure has been answered.
    is there a way to get a picture to show up next to the quote?

  14. brandon says:

    Dan,
    Thank you for your ideas. I may at some point introduce the changes you have suggested. I need to come back around and do a big revamp and the plugin as it has been awhile since I have released any significant changes.

  15. brandon says:

    Anthony,
    At this point I don’t have any plans on including this type of feature. However you could place an image, align it the the left or right, and then, using the shortcode place the quote after the image. This may help accomplish what you are wanting to do.

  16. anthony says:

    thank you brandon
    i am trying to get the picture to show up with the quote on the sidebar and
    i believe you just answered my question. smart little trick :)

  17. ines says:

    Hi Brandon!
    I really love your quote plugin. Thank you so much! I just have one simple question. Is it possible to change the colour of the quote text?
    Thanks a lot

  18. Abdul says:

    In the Perfect Quotes widget, I do not get the option (check box) for random quotes as stated in your documentations: http://wordpress.org/plugins/perfect-quotes/screenshots/ neither do I get the option to show the number of quotes. I am using the latest release of WP and 0.3.4.3 of Perfect Quotes. Thank you in advance with any assistance you can provide.

  19. brandon says:

    Abdul,
    I’m not sure why it isn’t working. I have been out sick for a couple weeks and am trying to catch up on things around here. I will get to this as soon as I can. Thanks for the heads up!

  20. Lynn says:

    Hi,

    I’m loving the plugin. Thank you so much for letting me see the quotes I’ve saved over time on a regular basis.

    Question I’m not blocking my search tool from finding quotes. So when I do a search for something like ‘change’, i get about 20 quotes back. That’s awesome except for one thing. I have to copy the quote, and paste into google to find the author. I’ve pondered creating a menu hierarchy or series of pages using your short codes to generate lists of quotes of various categories. I have a lexicon of categories so that’s a lot of work.

    If I had my ideal solution, the field currently used to type the quote would be at the bottom with the author and where from info. Upon changing any of those 3 fields, the main field would update to include a combination of the three. That way, the search results would show all available information about the quote. You would simply need to adjust the short code results and widget display to pull the quote from the added field rather than the primary data field which if used following this change would result in redundant data being displayed.

    But that’s how I would do it… :) Is that a hint or what? Seriously, thank you. I’m inspired many times daily because of your plugin….

  21. Bennie says:

    Hi there

    I used the option to place random quotes from a category to a page, but it does not show the quote reference.

    Can you please assist – the site is http://www.spekboomconsulting.co.za

    Cheers

    Bennie

  22. Sven says:

    Great plugin. But I have a problem with the Quick Edit feature. When you edit with Quickedit (change category) the information in the row author shall deleted. This is annoying. Patch available?
    (sorry, bad english. Google-translated)

  23. James says:

    I was wondering how to style the output for the shortcode. Do you use a block quote css or a custom tag?

  24. brandon says:

    Bennie, It appears as though it is showing up to me. Can you be more specific?

  25. brandon says:

    Sven,
    I would have to look into that for you. I can’t promise a speedy fix as I can only work on this as time and projects allow. Thanks for the heads up on this bug, though.

  26. brandon says:

    James,
    I am using the custom css class of div.perfect-quotes for the shortcode.

  27. Peggy says:

    Hi Brandon.

    Is there a way to make the text larger in the sidebar widget?
    It is much much smaller than all of my other text.
    http://peggygurney.com.

    Thank you!

Leave a Reply