Change site style→

style-1 style-2
  1. nazenani
  2. >
  3. >
  4. >
  5. Sort data at random. How to sort data. [orderby]

Sort data at random. How to sort data. [orderby]

“orderby” is a parameter key to define how to sort posted data getting with WP_Query.
Sorting method can be select by changing value like “rand”.

Script below is example of sorting data at random.

Reference

Class Reference/WP_Query

comment

Fields with * is required.

go to related tags archive?