DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
get one random post wp
$the_query = new WP_Query(array('orderby' => 'rand', 'posts_per_page' => '1'));
PREVIOUS
NEXT
Tagged:
#random
#post
#wp
ADD COMMENT
Topic
COMMENT
Name
8+8 =
Submit