WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Page 2 not working (7 posts)

  1. dozer2k
    Member
    Posted 1 year ago #

    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(); ?>
  2. dozer2k
    Member
    Posted 1 year ago #

    Please. I will show all the gratitude i can give to someone who can propose an idea of what is wrong! Thank you!

  3. keesiemeijer
    moderator
    Posted 1 year ago #

    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.

  4. dozer2k
    Member
    Posted 1 year ago #

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

  5. keesiemeijer
    moderator
    Posted 1 year ago #

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

  6. dozer2k
    Member
    Posted 1 year ago #

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

    Again, thank you for your help!

    You're a life saver!

  7. yoheather1
    Member
    Posted 8 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic