WordPress.org

Support

Support » Plugins and Hacks » Pagination not displaying in custom loop

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

    http://wordpress.org/plugins/wp-paginate/

Viewing 1 replies (of 1 total)
  • you can use replace plugin for your pagination. There are lot of replace plugin available in wordpress.
    replace plugin is used when you want to change older stories or older post to pagination.
    just have a look at this website Guneet.in

Viewing 1 replies (of 1 total)
  • The topic ‘Pagination not displaying in custom loop’ is closed to new replies.