wordpress - Need a link to last page of pagination -
so im using regular pagination
previous_posts_link('<'); // using previous icon couse of easyer styling echo paginate_links( $args ) ; global $wp_query; $big = 999999999; 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, 'prev_text' => __(''), 'next_text' => __(''), 'mid_size' => 2 ) ); next_posts_link('>'); // using next icon couse of easyer styling so pagination looks looks this, has next , previous icons , page numbers:
< 1 2 3 >
i need have possibility of going first page , last page of pagination these 2 icons
<< , >>
so figured out how go first page of pagination, since on index page link these 2 icons: << this:
bloginfo('wpurl'); so question how go last page of pagination? fkors pagination should this:
<< < 1 2 3 > >>
there r prebuilt wordpress function calls next , last page links
Comments
Post a Comment