Jump to content


Photo
- - - - -

Help Installing the WP-PageNavi Pluggin


  • This topic is locked This topic is locked
1 reply to this topic

#1 pspr

pspr

    Super Member

  • Members
  • 114 posts
  • Country: Country Flag

Posted 09 April 2013 - 12:47 AM

Hi guys I need some help installing the WP-PageNave pluggin. The instructions are really short but I cant seem to pass the first step. Im using the the Pagelines Framework 2.4.1 theme. I cant seem to find the next_posts_link() ..... I would appreciate any help I can get. Thank you.

 

Usage

In your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them.

In the Twentyten theme, it looks like this:

<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>

You would replace those two lines with this:

<?php wp_pagenavi(); ?>

For multipart pages, you would look for code like this:

<?php wp_link_pages( ... ); ?>

and replace it with this:

<?php wp_pagenavi( array( 'type' => 'multipart' ) ); ?>

Go to WP-Admin -> Settings -> PageNavi for configuration.



#2 James B

James B

    Advocate

  • Moderators
  • 4995 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 09 April 2013 - 12:56 AM

Post duplicated, closing this one and responding on the other.