Display 3 levels of categories on page
Try this: <?php $paged = ( get_query_var( ‘paged’ ) ) ? get_query_var(‘paged’) : 1; $cat_id = 42; $child_categories=get_categories( array( ‘parent’ => $cat_id ) ); foreach ( $child_categories as $child ) { ?> <!– loop through child categories and make columns –> <div class=”col-sm-4″> <!– category title –> <?php $string = $child->cat_name; $className = str_replace(‘ ‘, … Read more