Pagination not displaying in custom loop
-
Hello,
The pagination is not appearing at all on my custom loop, however its placeholder appears to be there.
<?php get_header(); ?> </div> <div class="pagetitle"> <h1>Grime Forum Time Line</h1> </div> <?php if ( have_posts() ) : while ( have_posts() ): ?> <div class="timelinewrap"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $prev_date = null; $posts = get_posts(array('orderby'=>'post_date','paged' => $paged,'showposts' => 60,'post_type' => array('post', 'audio', 'releases', 'videos', 'events', 'merchandise'))); foreach( $posts as $post ): $date = date( "F Y" , strtotime( $post->post_date ) ); if( $date != $prev_date ): ?> <h3><?php echo $date ?></h3> <?php $prev_date = $date; endif; ?> <?php the_post(); ?> <div class="timelinepost"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </div> <?php endforeach; ?> <?php endwhile; endif; ?> </div> <div class="pagefooter"> <?php wp_paginate() ?> </div> <div> <?php get_footer(); ?>
Any ideas
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Pagination not displaying in custom loop’ is closed to new replies.