• Hi, I have a problem with the blog page.
    As far as I can tell, the loop on the blog template is the same loop of the home page.
    When I limit the articles on the home page, the articles on the blog template file are limited too. This somehow affects the pagination on the blog template, that doesn’t work.
    I don’t know how to fix this. Please help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter FedKiKa

    (@fedkika)

    anyone?

    open style.php and replace this code

    <?php  
    
    	 $args = array(
    				   'post_type' => 'post',
    				   'cat' => ''.$hathor['blog_cat_id'].'',
    				   'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
    				   );
    	$the_query = new WP_Query( $args );
     ?>

    to

    <?php  
    
    	 $args = array(
    				   'post_type' => 'post',
    				   'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
    				   'posts_per_page' => '6'
    				   );
    	$the_query = new WP_Query( $args );
     ?>
    Thread Starter FedKiKa

    (@fedkika)

    I replaced the code with the one you suggested, but still it’s not working ??
    Maybe it helps if I link my page: https://www.scattispeciali.it/blog/
    As you see, there are no paginations buttons, I have 20 articles but it shows only 6, like on the homepage.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blog Page not showing all posts’ is closed to new replies.