Support » How-To and Troubleshooting » [Resolved] Page 2 not working

[Resolved] 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">
    		if ( get_query_var('paged') )
    		    $paged = get_query_var('paged');
    		elseif ( get_query_var('page') )
    		    $paged = get_query_var('page');
    		    $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)
  • Please. I will show all the gratitude i can give to someone who can propose an idea of what is wrong! Thank you!

    Moderator keesiemeijer


    Can you test if it works if you are on the default permalink structure. wp-admin > Settings > Permalinks

    Something is redirecting it.
    – flushing any caching plugins you might be running, as well as server and/or browser caches.

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    – renaming or deleting the .htaccess file by using FTP or whatever file management application your host provides. If you delete it make a backup first.

    <<Can you test if it works if you are on the default permalink structure. wp-admin > Settings > Permalinks>>

    Yes. i set it to default and it works!

    Thank you very much!

    Any idea on how i can make things work on using <Post name> for permalink?

    Moderator keesiemeijer


    Put your permalink structure back to what it was and try the other troubleshooting steps.

    Found it. It seems that the official Facebook plugin is to blame.

    Again, thank you for your help!

    You’re a life saver!


    I have done all the things that you listed above and still having issues getting to page 2, looks like the category pages are paginating, just not the homepage

    clients site:

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Page 2 not working’ is closed to new replies.