title: How to display my all category names using loop (WordPress)
body: <p>I have below code here. It's display that I want category names and description as well. Now I need to display post that they have inside their categories. How I do it? </p>
  
  <pre><code>&lt;?php 
      $args = array(
          'orderby' =&gt; 'id',
          'hide_empty'=&gt; 0,
          'child_of' =&gt; 10, //Child From Boxes Category 
      );
      $categories = get_categories($args);
      foreach ($categories as $cat) {
          echo '&lt;div class="one_fourth"&gt;';
          echo '&lt;h1 class="valignmiddle uppercase title-bold"&gt;'.$cat-&gt;name.'&lt;img src="'.$cat-&gt;term_icon.'" alt=""  class="alignleft"/&gt;'.'&lt;br /&gt;'.'&lt;span class="solutions"&gt;'.$cat-&gt;description.'&lt;/span&gt;'.'&lt;/h1&gt;';
          $post = array( 'posts_per_page' =&gt; 5, 'offset'=&gt; 1, 'category' =&gt; 10 );
          $posts_array = get_posts( $post );
  
          echo '&lt;/div&gt;';
      }
      ?&gt;
  </code></pre>
  
  <p>If there have any other way to get child category post and display child category name and posts in loop. Please let me to know here.</p>