Support » Plugin: WP-Paginate » 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 class="pagetitle">
    <h1>Grime Forum Time Line</h1>
    <?php if ( have_posts() ) : while ( have_posts() ): ?>
    <div class="timelinewrap">
    $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>
    <?php endforeach; ?>
    <?php endwhile; endif; ?>
    <div class="pagefooter">
     <?php wp_paginate() ?>
    <?php get_footer(); ?>

    Any ideas

Viewing 1 replies (of 1 total)
  • Guneet_20


    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

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