pagination problem

  • Unknown's avatar

    the code

    echo '';
               $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
               $args = array( 'post_type' => 'post','paged' => $paged, 'posts_per_page' => '6' );
               $loop = new WP_Query( $args );
               while ( $loop->have_posts() ) : $loop->the_post();
                    echo '';
                    the_post_thumbnail('thumbnail');
                    echo '';
                    the_title();
                    echo '';
                    the_time('l jS F Y');
                    echo '';
                    the_excerpt();
                    echo '</div></div>';
            endwhile;
      echo '</div>';
      echo '';
             $nav = get_the_posts_pagination( array(
                 'prev_text'          => __( '', 'textdomain' ),
                  'next_text'          => __( '', 'textdomain' ),
                    'screen_reader_text' => __( 'A' )
                ) );
         $nav = str_replace('A', '', $nav);
                                            echo $nav;
     echo '';
    

    The problem
    no pagination links appear in the div blogPagination, the 6 blogs display fine

    can anyone spot an error please?

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    Looks like you’re in the wrong forum. Your site is using the open source WordPress.org software and you need to seek help at these forums:

    https://wordpress.org/support/forums/

    These forums are for WordPress.com hosted sites only. If you want to know more about the differences between WordPress.com and WordPress.org you can read this document:

    WordPress.com vs. WordPress.org

  • The topic ‘pagination problem’ is closed to new replies.