Looking through the pagination functions available in WordPress, most seem to be associated with posts. paginate_links() seems to be the only function which will work with WP_User_Query
. However, when I use that I get numbered pagination:
echo paginate_links( array(
'base' => get_pagenum_link( 1 ) . '%_%',
'current' => max( 1, get_query_var( 'paged' ) ),
'format' => 'page/%#%/',
'prev_next' => true,
'total' => intval( $wp_user_query->total_users / $number ) + 1
) );
How can I output "Prev" and "Next" pagination links that work with WP_User_Query
? Note, I don't want to output numbered links such as 1, 2, 3 and so on.