[wp-trac] [WordPress Trac] #23948: Random for WP_Query

WordPress Trac noreply at wordpress.org
Fri Apr 5 09:06:36 UTC 2013


#23948: Random for WP_Query
-----------------------------+--------------------------
 Reporter:  Looimaster       |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.5.1            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 I discovered that some servers (like 2 out of 10) don't support random
 order in WP_Query - MySQL returns posts in the same order all the time. It
 works on WAMP localhost and on my server but it doesn't work for two other
 people I'm helping on their servers.

 I did the simplest possible WP_Query in Twenty Twelve theme and I
 discovered that MySQL's RAND() didn't take any effect - it was simply
 returning posts in the same order all the time (while once again - the
 same exact WP_Query works on WAMP localhost on Windows 7).

 I'm not sure if this qualifies for a bug report.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23948>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list