WordPress.org

Ready to get started?Download WordPress

Forums

WP-Paginate
Pagination not displaying in custom loop (2 posts)

  1. stylishjm
    Member
    Posted 8 months ago #

    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/

  2. Guneet_20
    Member
    Posted 8 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.