pagination problem
-
Hello,
I’m developing a page where I use custom loops and want to make use of pagination. The first page shows ONE latest post of 2 categories and 1 post type. So it will show like this:1. <article> (normal post, category article)
2. <column> (normal post, category column)
3. <product> (post type product)Now I want to have pagination at the bottom (previous, next and pagenumbers). Each next page will show an older post. In my case I didn’t came further than this:
<?php global $wp_query; $big = 999999999; // need an unlikely integer echo paginate_links( array( 'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages ) ); ?>
Does anyone knows how to make a pagination for my custom post loops?
Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘pagination problem’ is closed to new replies.