How can I set title attribute in paginate_link function
global $wp_query;
$big = 999999999; // need an unlikely integer
$pagin = 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' => __('Prev'),
'next_text' => __('Next'),
'type' => 'array',
'end_size' => 0
) );
Have a look at my above code I am using this to create pagination it is
working fine but I want to show the title attribute on Previous and Next
link .Is there any argument available to create the title
Thanks in advance
No comments:
Post a Comment