php - Wordpress Category Page Pagination? -


i having little different issue on category page. don't want show posts on category page. showing child categories of parent category on category page when user click on parent category show how parent have child children show on category page thumbnail. having issue want show 16 child categories , want use pagination next children. please. here code using right now.

<?php $thiscat =  get_query_var('cat'); // id of current category $catobject = get_category($thiscat,false); // category object id of current category $parentcat = $catobject->term_id; // id of parent category $child = get_category_children( $thiscat, $before = '', $after = ',',  $visited = array() ); $num_cats  = wp_count_terms('category'); $num_parent_cats=count(get_categories('parent=0&hide_empty=0')); $num_child_cats = $num_cats-$num_parent_cats; if($child > $parentcat){ ?>       <div class="categories">          <?php foreach (get_categories() $cat) : ?>         <?php if($cat->parent == $thiscat){ ?>         <div class="main-subcat" style="display:inline-block">               <div class="thumb category-thumb" style="width:180px; display:inline-block;">                 <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" />                     <a class ="clip-link" href="<?php echo get_category_link($cat->term_id); ?>"><?php echo $cat->cat_name; ?></a>             </div>             <div class="data">                 <h2 class="entry-title">                     <a class ="clip-link" href="<?php echo get_category_link($cat->term_id); ?>"><?php echo $cat->cat_name; ?></a>                 </h2>                 <h4 class="entry-meta">                     <?php echo $cat->category_description; ?>                 </h4>             </div>         </div>           <?php } ?>         <?php endforeach; ?>         </div>  <?php    } 


Comments