Title: WordPress Random Quote Hack
Last modified: August 18, 2016

---

# WordPress Random Quote Hack

 *  perogi
 * [21 years, 8 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/)
 * I made a relatively easy hack to install. It is not a plugin but anyone who has
   poked around with php should be able to install it very easily.
    All users with
   a security score of 2 or more can add and edit quotes using this hack. (This 
   is configurable.) You can find it at [perogi.org](http://www.perogi.org/) perogi.
   p.s. Currently it is in beta but has worked for me very well since the first 
   time I installed it. Just to stop any hard feelings (that may have happened with
   my weather hack), this is BETA, I need people to use and test it. If you have
   suggestions, please do not rip off the code and create a new ‘quotes hack’. Send
   me your improvements and I will include you in the next release (your code and
   your name). Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter Anonymous
 * [21 years, 8 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/#post-87627)
 * Anyone get a chance to try this out? If so, any suggestions?
    Thank you, perogi
   [perogi.org](http://www.perogi.org/)
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/#post-87628)
 * Give me a couple of days to play with it, and I’ll let you know.
    TG
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/#post-87629)
 * On second thought, I dumped it. For something as simple as this should be, there
   seemed to be an aweful lot of editing. Plus, rather than using the plugin system,
   you’ve opted for the older my-haks.php way of doing things. Any reason why?
    
   TG
 *  Thread Starter Anonymous
 * [21 years, 8 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/#post-87639)
 * Simple reason? I have no idea how to make a plug-in and don’t have the desire
   to learn atm =)
    Thanks for the effort tho TG! perogi
 *  Thread Starter Anonymous
 * [21 years, 8 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/#post-87660)
 * Speaking of plug-ins, I searched and couldn’t find the devs spot to learn the
   framework for creating plug-ins, any help please?
    perogi. [perogi.org](http://www.perogi.org)
 *  [lgoodbar](https://wordpress.org/support/users/lgoodbar/)
 * (@lgoodbar)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/#post-87664)
 * This sounds a lot like some quote hacks I wrote back in the b2 days. I even had
   a quote manager for the admin interface. I found an easier way all within WP.
   
   I created a “Random Quotes” link category with a sort order ‘rand’ and limit 
   1. Where I wanted the quote is under the blog name (where the description would
   go). I yanked out the description and put in the following code: ` <div class
   ="description"><?php /* bloginfo('description'); */ $links = get_linkobjects(
   2, 'rand', 1); if ($links) { foreach ($links as $link) { echo $link->link_name;}}?
   ></div>
 * This was taken pretty much from the wp-links.php for the get_linkobjects() function.
   At the time, I was going to put the quote in the link_notes field, but decided
   to put it in the link_name instead, without a URL.
    As an aside, now that I think
   about it, all the get_link* functions should use the defaults from the link info
   stored in the database instead of hard coded defaults in the function. I may 
   work on that sometime…….
 *  [lgoodbar](https://wordpress.org/support/users/lgoodbar/)
 * (@lgoodbar)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/#post-87665)
 * PS. You can see what I mean at my website [blackrobes.net](http://www.blackrobes.net/),
   now in its fourth iteration and undergoing massive construction. Using WP 1.2
   and Kubrick.
 *  Thread Starter Anonymous
 * [21 years, 7 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/#post-87673)
 * This hack does use the database. Although, I am sure that we have many similarities,
   I can assure you that I did not use anyone else’s code in the construction of
   this hack (besides WP core functionality).
    This hack does contain a quote manager
   in the admin part of the site. I actually give full permission to add/edit/delete
   to all of my bloggers. I hope more people get to use this if this is what they
   are looking for. My site: [http://www.perogi.org/](http://www.perogi.org/) displays
   the quote directly under my ‘logo’. perogi. [perogi.org](http://www.perogi.org)

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘WordPress Random Quote Hack’ is closed to new replies.

 * 8 replies
 * 3 participants
 * Last reply from: Anonymous
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/wordpress-random-quote-hack/#post-87673)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
