$query = new WP_Query( array( 'orderby’ => 'rand’, 'posts_per_page’ => 1, 'post_type’ => 'page’, 'post_parent’ => '2′ )) ;
if ( $query->have_posts() ) {
echo ’

    ’;
    while ( $query->have_posts() ) {
    $query->the_post();
    echo ’

  • ’ . get_the_title() . ’
  • ’;
    }
    echo ’

’;
} else {
// no posts found
}

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