title: WP Query loop - children in date order
body: <p>I have a WP query loop</p>
  
  <pre><code>foreach($children as $child) :
                  $f++;
                  $cat = get_category($child);
                  $content .= '&lt;li&gt;&lt;a href="' . get_category_link($cat-&gt;term_id) . '" class="category-child"&gt;' . getVariableText($cat-&gt;name,40) . ' (' . $cat-&gt;count . ')&lt;/a&gt;&lt;/li&gt;';
      endforeach;
  </code></pre>
  
  <p>Produces:</p>
  
  <p><strong>News</strong></p>
  
  <ul>
  <li>March 2014</li>
  <li>April 2014</li>
  <li>May 2014</li>
  </ul>
  
  <p>This outputs 3x child categories under the parent category name, but I wish to order them by <strong>date</strong>, <strong>newest</strong> at the top. Altering the main query doesn't have an effect on the children...any suggestions?</p>
  
  <p>The initial, main query is here, which lists all the parents in A-Z:</p>
  
  <pre><code>$category = get_category_by_slug( 'information-index' );
  
  $args = array(
      'type'                     =&gt; 'post',
      'parent'                   =&gt; $category-&gt;term_id,
      'orderby'                  =&gt; 'date',
      'order'                    =&gt; 'ASC',
      'hide_empty'               =&gt; 0,
  
  );
  
  $child_categories = get_categories($args);
      $category_list = array();
      $category_list[] = $category-&gt;term_id;
      $content = ''; '
  </code></pre>
  
  <p>Is this even possible, as the 'outer' loop is listing categories in <strong>Alphabetical</strong> order?</p>
  
  <p>Any help appreciated. Martin.</p>