Support » Fixing WordPress » Pagination with categories

  • Hi,

    I got a problem with the categories.
    The WordPress uses like 60 categories from custom post type, that is alot.
    Now I want to display the categories on the page using a pagination and split it up to 10 categories per page.

    How can I make this possible?

    Greeting,
    Steekvlam

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Steekvlam

    (@steekvlam)

    Is this doable with <?php wp_list_categories( $args ); ?>

    This is the html :

    <ul>
    	<li>
    	<aside class="image">
    		<a href="#"><img src="category-image.jpg" alt="" class="imageauto"></a>
    	</aside>
    		<h2><a href="#">Category Title</a></h2>
    		<p>Category description</p>
    	</li>
    <ul>

    Thread Starter Steekvlam

    (@steekvlam)

    Im using this one

    <?
                        $posts_per_page = 6;
    
    		    $page = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
    		    $offset = ( $page - 1 );
    
    		    $args = array(
    			'order_by' => 'name',
    			'taxonomy' => 'cat_shows'
    		    );
    		    $categories = get_categories( $args );
    
    		    for( $i = $offset * $posts_per_page; $i < ( $offset + 1 ) * $posts_per_page; $i++ ) {
    			$category = $categories[$i];
    			$category_link = get_category_link( $category->term_id );
    ?>

    But it isnt giving me the good pagination.
    Please help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination with categories’ is closed to new replies.