WordPress.org

Forums

WP-PageNavi
WPageNavi not working with Pretty Links... (1 post)

  1. ImtheKiller
    Member
    Posted 3 years ago #

    If i disable custom permalink, WPNavi works fine but If I use Custom permalink "/%postnames%/" WPagaNavi doesn't work.

    I am using the latest version of WPageNavi

    Here is my code:
    <?php

    /*
    Template Name: Styles
    */
    get_header();

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts( 'cat=3&showposts=4&paged='.$paged);
    ?>

    <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
    <h1>"><?php the_title(); ?></h1>

    <?php endwhile; ?>

    <?php if(function_exists('wp_pagenavi')) { ?>
    <?php wp_pagenavi(); ?>
    <?php } else { // Otherwise, use traditional Navigation ?>
    <?php next_posts_link('« Older Entries') ?>
    <?php previous_posts_link('Newer Entries »') ?>
    <?php } ?>

    <?php endif; ?>

    <?php wp_reset_query(); ?>
    <?php get_footer(); ?>

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic