- This topic has 1 reply, 1 voice, and was last updated 9 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Pagination with numbers on usage with shortcode
Hello,
I’m using the S&F as a shortcode on a page to display results. And I want to use numbered pagination, next to the previous/next buttons.
Is it possible to do that? And if so, can I use the standard WordPress function for that?
I couldn’t find this in the docs, but maybe I’m just looking in the wrong place.
Thanks in advance!
I found a way to do this, as follows:
$pag_args = array(
'format' => '?sf_paged=%#%',
'total' => $query->max_num_pages,
'current' => $query->query['paged'],
'show_all' => false,
'end_size' => 0,
'mid_size' => 2,
'prev_next' => true,
'prev_text' => __('Vorige', 'playadvisor'),
'next_text' => __('Volgende', 'playadvisor'),
'type' => 'plain',
);
$pags = paginate_links($pag_args);
Topic can be closed.