title: How to display random child pages of a parent page in Wordpress?
body: <p>I am trying to display random child pages of a parent page, but I get random posts which I dont want to be included in the display area.</p>
  
  <pre><code>$my_query = new WP_Query( array ( 'orderby' =&gt; 'rand', 'posts_per_page' =&gt; '1', 'pagename=guide') );
  </code></pre>
  
  <p>So, what I want is to display random child pages of a parent page who slug is guide, but instead I get random posts which is quite different from what I want. Any help would be appreciated. Thanks :)</p>