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

  1. creativionmedia
    Posted 4 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:

    		$home_count = get_option('zens_home_count');
    		$temp = $wp_query;
    		$wp_query= null;
    		$wp_query = new WP_Query();
    	<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    <?php getpagenavi(); ?>
    <?php $wp_query = null; $wp_query = $temp;?>

    Can you please help me ??


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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