$qu­ery = new WP_Query( ar­ray( ‘or­der­by’ => ‘rand’, ‘posts_per_page’ => 1, ‘post_type’ => ‘page’, ‘post_parent’ => ‘2’ )) ;
if ( $query->have_posts() ) {
echo ’

    ‘;
    whi­le ( $query->have_posts() ) {
    $query->the_post();
    echo ’
  • ’ . get_the_title() . ’
  • ;
    }
    echo ’

;
} else {
// no posts fo­und
}

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt