function qodef_custom_pagination() {
global $wp_query;
if ( get_query_var( ‘paged’ ) ) {
$paged = get_query_var( ‘paged’ );
} elseif ( get_query_var( ‘page’ ) ) {
$paged = get_query_var( ‘page’ );
} else {
$paged = 1;
}
if ( is_front_page() || is_home() || is_archive() || is_search() ) { ?>
str_replace( 999999999, ‘%#%’, esc_url( get_pagenum_link( 999999999 ) ) ),
‘total’ => $wp_query->max_num_pages,
‘current’ => $paged,
‘prev_text’ => ‘‘ . esc_html__( ‘«’, ‘textdomain’ ) . ‘‘,
‘next_text’ => ‘‘ . esc_html__( ‘»’, ‘textdomain’ ) . ‘‘
) ); ?>
‘total’ => $wp_query->max_num_pages,
‘current’ => $paged,
‘prev_text’ => ‘‘ . esc_html__( ‘«’, ‘textdomain’ ) . ‘‘,
‘next_text’ => ‘‘ . esc_html__( ‘»’, ‘textdomain’ ) . ‘‘
) ); ?>