Support » Theme: Asteria Lite » Blog Page Not Showing All Blogs or Pagination

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Towfiq I.

    (@tislam100)

    to fix the pagination, Open up page-blog.php and replace this:

    <?php
            global $wp_query;
            $big = 999999999; // need an unlikely integer
                echo paginate_links( array(
                    'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
                    'format' => '?paged=%#%',
                    'current' => max( 1, get_query_var('paged') ),
                    'total' => $wp_query->max_num_pages,
                    'show_all'     => true,
                    'prev_next'    => false
    
                ) );
        ?>

    with this:

    <?php
            global $the_query;
            $big = 999999999; // need an unlikely integer
                echo paginate_links( array(
                    'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
                    'format' => '?paged=%#%',
                    'current' => max( 1, get_query_var('paged') ),
                    'total' => $the_query->max_num_pages,
                    'show_all'     => true,
                    'prev_next'    => false
    
                ) );
        ?>

    Thank you. Seems to work.
    Shouldn’t there also be pagination, or at next/previous post titles on the individual posts pages?

    M

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blog Page Not Showing All Blogs or Pagination’ is closed to new replies.