Title: [Plugin: Random Text] Display all?
Last modified: August 20, 2016

---

# [Plugin: Random Text] Display all?

 *  [jeeni](https://wordpress.org/support/users/jeeni/)
 * (@jeeni)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-random-text-display-all/)
 * Hello there – love your plugin – thank you so much for your hard work!
 * I love using the widget to bring up one random saying in the sidebar, but would
   love to be able to publish a whole category to a page. Is there (or will there
   be) support for pulling all sayings from a category to a page using shortcodes?
 * I’m using them as testimonials, and it would be nice to be able list them all
   on a page.
 * Thank you!
 * [http://wordpress.org/extend/plugins/randomtext/](http://wordpress.org/extend/plugins/randomtext/)

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

 *  [MariGarza](https://wordpress.org/support/users/marigarza/)
 * (@marigarza)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-random-text-display-all/#post-2631840)
 * I wrote this for my own use. Hope it helps.
    On randomtext.php add the following
   code on line 198 (Version: 0.2.9) below `add_shortcode('randomtext', 'randomtext_shortcode');`
 * You can use shortcodes **[alltext]** or **[alltext category=”funny”]**
 * Code:
    [http://pastebin.com/Xxc1ura6](http://pastebin.com/Xxc1ura6)
 *  Thread Starter [jeeni](https://wordpress.org/support/users/jeeni/)
 * (@jeeni)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-random-text-display-all/#post-2631841)
 * Oh wow – thank you! I will give it a try – thanks for sharing, MariGarza!
 *  [creativeafrica](https://wordpress.org/support/users/creativeafrica/)
 * (@creativeafrica)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-random-text-display-all/#post-2631858)
 * That worked amazing! Can you tell me how to still Randomize the results?
    Much
   appreciated!
 *  [MariGarza](https://wordpress.org/support/users/marigarza/)
 * (@marigarza)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-random-text-display-all/#post-2631859)
 * Order by **RAND()** instead of **randomtext_id asc** (line 11 in the codeblock
   sample)
    `$sql .= ' ORDER BY RAND()';`
 *  [Kizzie86](https://wordpress.org/support/users/kizzie86/)
 * (@kizzie86)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-random-text-display-all/#post-2631860)
 * MariGarza
 * you seem to know what you are talking about – hopefully maybe you can help me?
 * I really like this widget and I have another one called slickrflickr which I 
   have display as a slideshow with a 5 sec delay
 * is there anyway I can produce code to make the randomtext generate a new code
   without having to refresh?
 * Maybe using some preexisting code from slickrflickr?
 * any help you code provide would be greatly appreciated!!!
 * Kiz
 *  [MariGarza](https://wordpress.org/support/users/marigarza/)
 * (@marigarza)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-random-text-display-all/#post-2631861)
 * You would need a widget written in javascript to accomplish a browser side action
   like this.
 *  Thread Starter [jeeni](https://wordpress.org/support/users/jeeni/)
 * (@jeeni)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-random-text-display-all/#post-2631876)
 * Wanted to peek my head in and say another “Thank you!” to you, MariGarza!
 * I put the code you shared in my functions.php page so I wouldn’t overwrite it
   if/when the plugin was updated and it works perfectly.
 * Thanks again so much for sharing your knowledge and this help!

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

The topic ‘[Plugin: Random Text] Display all?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/randomtext.svg)
 * [Random Text](https://wordpress.org/plugins/randomtext/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/randomtext/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/randomtext/)
 * [Active Topics](https://wordpress.org/support/plugin/randomtext/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/randomtext/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/randomtext/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [jeeni](https://wordpress.org/support/users/jeeni/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-random-text-display-all/#post-2631876)
 * Status: not resolved