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 ??