WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
PageNavi does not work on the home page (1 post)

  1. creativionmedia
    Member
    Posted 2 years ago #

    Hi, I have a problem with the wp-pagenavi plugin on my website.
    The url is http://teesomeshirts.com/

    Page navigation doesn't work only on the home page. Other navigation (categories, posts, tags, etc is ok) So, when it tries to navigate to /page/2 , there's a 404 error.

    I tried doing some research but I can't figure out how to use the query to display the pages. Here's the code:

    <?php
    		$home_count = get_option('zens_home_count');
    		$temp = $wp_query;
    		$wp_query= null;
    		$wp_query = new WP_Query();
    		$wp_query->query('posts_per_page='.$home_count.'&post_type=products'.'&paged='.$paged);
    	?>
    	<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    <?php getpagenavi(); ?>
    <?php $wp_query = null; $wp_query = $temp;?>

    Can you please help me ??
    Thanks!!

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by creativionmedia
  • This topic is not resolved
  • WordPress version: 3.4.1