Page 2 not working
-
First of all, my website is: http://haineonline20.com
The problem is, when i hit [2] to go on the second page of the homepage (haineonline20.com/page/2) it redirects me to the same homepage.
I know there are a lot of topics related to this issue, but i didn’t found something that will work for my theme. [Viper by FabThemes]
I think the code is in the homepage.php, as i don’t have a index.php file.
My knowledge of php/css is almost 0. 🙂
here is the part of code i think it’s responsible:
<div class="article-list cf"> <?php $prodnum=of_get_option('w2f_prod_number'); if ( get_query_var('paged') ) $paged = get_query_var('paged'); elseif ( get_query_var('page') ) $paged = get_query_var('page'); else $paged = 1; $wp_query = new WP_Query(array('post_type' => 'products', 'posts_per_page' => $prodnum, 'paged' => $paged )); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Page 2 not working’ is closed to new replies.