Title: skript03's Replies | WordPress.org

---

# skript03

  [  ](https://wordpress.org/support/users/skript03/)

 *   [Profile](https://wordpress.org/support/users/skript03/)
 *   [Topics Started](https://wordpress.org/support/users/skript03/topics/)
 *   [Replies Created](https://wordpress.org/support/users/skript03/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/skript03/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/skript03/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/skript03/engagements/)
 *   [Favorites](https://wordpress.org/support/users/skript03/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Proplems with Displaying posts in certain orders (i’m stuck!)](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/#post-586991)
 * It worked….. So simple. I’m amazed at how easy that was. I think next time I 
   have to do this it may be a little easier;)
 * Thank you so much for the help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Proplems with Displaying posts in certain orders (i’m stuck!)](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/#post-586982)
 * Thanks for the help. The image shuffle would work fine also. As long as they 
   can be used as links.
 * I’ll contact you via email for more info.
 * Thanks again
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Proplems with Displaying posts in certain orders (i’m stuck!)](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/#post-586976)
 * CCOUPE-
 * it’s not that I want the archive to be random. I’m using the archive section 
   to ranomly display peoples artwork. I’d like everyone to have a equal shot at
   1st, 2nd, 3rd ect. Using the archive allows me to organize the different artwork
   in the Posts.
 * It makes the organization on the backend easier.
 * Obviously making them appear in a random order is pretty hard. I don’t think 
   I’ve ever asked a questions that has been so difficult to locate an answer.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Proplems with Displaying posts in certain orders (i’m stuck!)](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/#post-586795)
 * Any thoughts on how to implement this mysql info to make the posts appear in 
   random order?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Proplems with Displaying posts in certain orders (i’m stuck!)](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/#post-586727)
 * I came up with this on another site.
 * Will this work??
 * [http://www.desilva.biz/mysql/random.html](http://www.desilva.biz/mysql/random.html)
 * I’m not sure how to implement it, but it looks like it my be a step in the right
   direction.
 * Thanks for the assistance
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Proplems with Displaying posts in certain orders (i’m stuck!)](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/proplems-with-displaying-posts-in-certain-orders-im-stuck/#post-586722)
 * [http://codex.wordpress.org/Template_Tags/query_posts](http://codex.wordpress.org/Template_Tags/query_posts)
 * The query_posts doc is what’s gotten me this far. It say there are a bunch of
   options not listed. I’m assuming that some sort of RAND() feature is an option.
 * I just can’t figure out how to make it apply.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [help with Random Display of Posts](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/#post-586278)
 * Just wondering if there is anyone around right now to help with this problem.
   I can’t really move on with my project until I solve it:)
 * As Always, Thanks for the help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [help with Random Display of Posts](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/#post-586271)
 * Have I been posting this in the right area of the support forum or should I post
   it elsewhere? Just let me know.
 * Thanks:)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [help with Random Display of Posts](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/#post-586264)
 * I’ve given the RAND() option several shots using
    <?php query_posts($query_string.“&
   order=RAND()”); ?> before the loop. It doesn’t seem to have any effect. Does 
   anyone else have any thoughts?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [help with Random Display of Posts](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/#post-586234)
 * I gave RAND a shot. Nothing happened. I also tried lower case rand. random, RANDOM…
   I made sure to go through the trial and error process prior to asking the question.
   I’m not a big fan of people who won’t attempt to solve the problem before they
   ask. I’m sure you feel the same way.
 *  I’m putting in the effort… Apparently I lack on php. smarts.
 * After decoding your riddle:) I’ve come to the conclusion that: ORDER BY RAND()
   LIMIT $numposts”) may work.
 * I’m taking a stab at it.. Correct me if I’m wrong please. Thanks again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [help with Random Display of Posts](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/#post-586227)
 * I’ve made some progress. This works in ordering posts before the loop occurs.
 * <?php query_posts($query_string . “&order=ASC”); ?>
 * this is placed before the loop. It of course, puts the items in ascending order.
 * What would I type in “&order=_____” to cause them to display in a random order?
 * I appreciate the support greatly.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [post display ordering question](https://wordpress.org/support/topic/post-display-ordering-question/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/post-display-ordering-question/#post-586225)
 * Hopefully there is someone who can help with this problem. Anyone have any ideas
   yet?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [help with Random Display of Posts](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/#post-586152)
 * I appreciate your ‘traffic directing’.
 * You led me in the right direction.
 * Maybe someone will see this thread this evening and have a brilliant idea. It
   seems like it would be a common request, but there’s not much documentation on
   it.
 * Thanks again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [help with Random Display of Posts](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/#post-586149)
 * I’ve attempted adding the loop to the archive.php in my theme that I am using.
   I’m 100% sure i’m doing it incorrectly.
 * I’ve tried adding the loop to the archive.php document and replacing the loop
   in the archive.php document. Neither worked. to save time the code to paste from
   the link you mentioned is listed below. Am I adding it to the wrong php. file?
 * Essentially I’d like a category to be picked, and the posts displayed to be randomly
   organized.
 * Thanks again:) You guys are pure genius.
 * <?php global $wpdb; $numposts = 1; $rand_posts = $wpdb->get_results(“SELECT *
   FROM $wpdb->post2cat,$wpdb->posts,$wpdb->categories WHERE $wpdb->post2cat.post_id
   = $wpdb->posts.ID and $wpdb->post2cat.category_id = $wpdb->categories.cat_ID 
   and $wpdb->posts.post_status = ‘publish’ and $wpdb->categories.cat_name = ‘featured’
   ORDER BY RAND() LIMIT $numposts”);
    foreach($rand_posts as $post) : setup_postdata(
   $post); ?>
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [help with Random Display of Posts](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/)
 *  Thread Starter [skript03](https://wordpress.org/support/users/skript03/)
 * (@skript03)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/help-with-random-display-of-posts-in-category-not-in-list/#post-586145)
 * Amazing. I looked for a VERY long time and read ever damn bit of it:)
 * Thanks for helping, and making me look slow.
 * I’ll give it a shot. Hopefully it’ll work first time around.

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