Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have 50 category and i wants to show 10 category on ist page and next 10 on next page and next 10 on next page and so on with navigation. I am using this code. But no any navigation creating. but how to get navigation.

$args = array(
                'type'                     => 'post',
                'child_of'                 => 0,
                'parent'                   => '',
                'orderby'                  => 'name',
                'order'                    => 'ASC',
                'hide_empty'               => 1,
                'hierarchical'             => 1,
                'exclude'                  => '',
                'include'                  => '',
                'number'                   => '',
                'taxonomy'                 => 'category',
                'pad_counts'               => false 
            );

            $categories = get_categories($args);
            // loop through the categries
            foreach ($categories as $category) {
                $cat_link = get_category_link($category->cat_ID);
                echo '<a href="'.$cat_link.'">'.$category->name.'</a>'; // category link
                echo "</br>";
            }

?>
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.