WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
pagenavi embed but it doesnt work (3 posts)

  1. krlSoft
    Member
    Posted 2 years ago #

    Hello¡¡

    I would like to ask your for the pagenavigator that is implemented on swift theme, my version is v0.2, I have looked at many files that contains the code that should be replaced, i mean this code: <?php wp_link_pages( ... ); ?>. That's included in many files but even is replaced by: "<?php wp_pagenavi( array( 'type' => 'multipart' ) ); ?>" it doesnt work.

    I have embed this code in blog_loop_home file, replacing this: <?php if(function_exists('swift_pagenavi')) swift_pagenavi(); ?> (this one doesnt shows anything) for the one you give, and it shows just a number 1 into a circle but no the other pages even there is many information behind the first page.

    I 've downloaded the plugin and i have tried with the swift v6.1.0 theme but no one good result about this pagenavigator

    Do i have to modify any other option or any other specific file??

    Thanks for your time and attention, hope you can help me

    Best regards

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    You seem to have followed only the second part of the instructions in the readme. Here's what you missed:

    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">←</span> Older posts', 'twentyten' ) ); ?></div>
    <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>

    You would replace those two lines with this:

    <?php wp_pagenavi(); ?>
  3. krlSoft
    Member
    Posted 2 years ago #

    Hello Scribu¡¡

    Thanks for your answer, im gonna read it, even the 1st step talks about a code I cant found in my theme i use swift theme, do you know where can i find this code??

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

    I guess in the second part the code you post is for the case for multipart pages, This is what the "read me" contains:

    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' ) ); ?>

    i have changed this code but it doesnt work, in this theme (swiftPremium) is writen a code like this:
    if(function_exists('swift_pagenavi')) swift_pagenavi();
    that i suppose is the pagenavi owned of the theme but if I replace it here it just shows a number 1 into a circle.

    Hope you know this thing to make it work

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic