title: wordpress select first child page only?
body: <p>I have this content structure on wordpress:</p>
  
  <pre><code>-father
  --child
  ---grandchild
  </code></pre>
  
  <p>and to get the <code>child</code> content i use this:</p>
  
  <pre><code>$pages = get_pages('child_of='.$post-&gt;ID.'&amp;sort_column=post_date&amp;sort_order=desc');
  </code></pre>
  
  <p>the problem with this is that also gets me the content for <code>grandchild</code>;
  I tried to <code>$pages[0];</code> just for fun but as we all know this only got me the first child from all.. </p>
  
  <p>also i found  this info of <a href="http://codex.wordpress.org/Function_Reference/get_post_ancestors" rel="nofollow">wordpress codex</a> which was the one that come more close to give a clue in how to fix this...</p>
  
  <p>any idea or solution will be really appreciated.. thanks </p>