The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Pagination not displaying in custom loop (2 posts)

  1. stylishjm
    Posted 2 years ago #


    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


  2. Guneet_20
    Posted 2 years 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Paginate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.