Forums Forums Search & Filter Pro Pagination with numbers on usage with shortcode

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #48456

    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!

    Anonymous
    #48475

    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.

Viewing 2 posts - 1 through 2 (of 2 total)