WordPress.org

Ready to get started?Download WordPress

Forums

WP-Paginate
Does not work (4 posts)

  1. nextuniverse
    Member
    Posted 3 years ago #

    Hi, Do I just install and activate for this to work? It's not showing up (i still get previous and next links) but I've been digging around and don't seem to find any other settings to turn it on. Not on multi-site.

  2. Eric Martin
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,

    You have to replace the prev/next link code with the pagination code. All of the details are included in the installation instructions:

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

  3. ixwa
    Member
    Posted 3 years ago #

    Same problem here, although I did replace the code blocks in loop.php (above/below).

    Thing is, I'm not altogether certain if the category page I'm building (category-blah.php in my theme folder) is looking at the loop.php page at all. The page I'm building has a loop that displays 10 posts for the category...so maybe the pagination code must go directly in this page?

    Any advice?

    (Yes, I've read the installation info)

  4. DaveBarrack
    Member
    Posted 2 years ago #

    When the instructions say "Replace your existing previous_comments_link() and next_comments_link() code block with the following:"

    Does that mean replace:

    <div class="commentnav">
    				<div class="commentnav-right"><?php next_comments_link(__('Next Comments &uarr;','comicpress')) ?></div>
    				<div class="commentnav-left"><?php previous_comments_link(__('&darr; Previous Comments','comicpress')) ?></div>

    So it looks like this:

    <div class="commentnav">
       <div class="commentnav-right"><?php if(function_exists('wp_paginate_comments')) {
        wp_paginate_comments();
    } ?></div>
       <div class="commentnav-left"><?php if(function_exists('wp_paginate_comments')) {
        wp_paginate_comments();
    } ?></div>

    Or this:

    <div class="commentnav">
       <div class="commentnav-right"><?php if(function_exists('wp_paginate_comments')) {
        wp_paginate_comments();
    } ?></div>

    I'm sorry if this is a dumb question but I know enough about php to know that a single comma or period in the wrong place can break everything. Seeing EXACTLY what the finished product should look like is the only way us non-programmers can be sure we're doing it right.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic