• Resolved dozer2k

    (@dozer2k)


    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)
  • Thread Starter dozer2k

    (@dozer2k)

    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

    (@keesiemeijer)

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

    Something is redirecting it.
    Try:
    – 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.

    Thread Starter dozer2k

    (@dozer2k)

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

    (@keesiemeijer)

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

    Thread Starter dozer2k

    (@dozer2k)

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

    Again, thank you for your help!

    You’re a life saver!

    Hello,

    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:
    creepshots.com

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