'post', 'paged' => $paged ) ); ?>
query;
$pre_per_page = $blglst_query->query_vars;
$paged_no = $pre_paged_no['paged'];
$per_page = $pre_per_page['posts_per_page'];
//to solve bug in wp, query obj has $paged_no = 0 but going back from $paged_no = 2, shows $paged_no = 1
if( $paged_no == 1 ) {
$add_post_no = 0;
} else {
$add_post_no = $paged_no * $per_page;
}
$blcount = 2;
if ( $blglst_query->have_posts() ) : while ( $blglst_query->have_posts() ) : $blglst_query->the_post();
echo ( $blcount % 2 == 0 ? '
' : '' );
?>
'img-responsive img-blog-post-agpl', ) ); ?>
>
:
' . __( 'Tagged', 'agpl' ) . ': ', ', ', '
' );
//sticky post symbol
if ( ( $blcount + $add_post_no ) <= ( $sticky_no + 2 ) ) :
echo ( is_sticky() ? '
' : '' );
endif; ?>
ID )->post_author ), 64 ); ?>
' : '' );
$blcount = $blcount + 1; endwhile; endif;
echo ( $blcount % 2 != 0 ? '
' : '' );
if ( $blglst_query->max_num_pages > 1 ) :
$gretel_big = 999999999;
$listed_page = array(
'base' => str_replace( $gretel_big, '%#%', esc_url( get_pagenum_link( $gretel_big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var( 'paged' ) ),
'prev_text' => '
',
'next_text' => '
',
'total' => $blglst_query->max_num_pages
);
echo paginate_links( $listed_page );
endif; ?>