MINDSET is Everything. How we think shape our habits and life. Our thoughts impact how we feel, what we do. Or choose not to do. Be mindful.


<?php get_header(); ?>    

<div class="container py-5">
  <article class="article">

    <h1 class="text-center"><?php single_cat_title(); ?></h1>

    <?php echo category_description(); ?>
    
    <!-- SUBCATEGORIES AND POSTS -->   
    <?php $cat = get_the_category();
          $args = array('orderby' => 'id', 'parent' => $cat[0]->category_parent );
          $cats = get_categories($args);
          foreach ($cats as $cat){ $cat_id= $cat->term_id; ?>
    
      <section>
        <h2><?php echo $cat->name; ?></h2>

        <ul class="no-underline">
          <?php query_posts("cat=$cat_id&posts_per_page=100"); ?>
          <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <li><strong><a href="<?php the_permalink();?>"><?php the_title(); ?></a></strong></li>
          <?php endwhile; endif; ?>
        </ul>

      </section>

    <?php } ?>
    
  </article>
</div>

<?php get_footer(); ?>