Display Both next previous and number in single page
In a single page, I split long post by nextpage and shows pagination number or next/previous option.But I want to display both number and next-previous option. Here is my single page screenshot one is next-previous and another is number option.And My code is that:
function custom_nextpage_links($defaults) {
$args = array(
'before' = 'ul class="my-paginated-posts"ulli' . __( 'Section:', 'textdomain' ),
'after' = '/li/ul',
'link_before' = 'span class="page-link"',
'link_after' = '/span',
'separator' = ' ',
'nextpagelink' = __('Next raquo', 'textdomain'),
'next_or_number' = '',
'previouspagelink' = __( 'laquo Previous', 'textdomain' ),
'pagelink' = '%',
'echo' = 1
);
$r = wp_parse_args($args, $defaults);
return $r;
}
add_filter('wp_link_pages_args','custom_nextpage_links');
Topic nextpage pagination Wordpress
Category Web