Forums Forums Search & Filter Pro Custom pagination style

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #236614

    Hi,

    I would like to know how to customize the pagination element on result page?

    Currently, I have the next and previous buttons.
    But I would like to have next, previous and number of pages between of them 😉
    How could I do that?

    Best regards.

    Trevor
    #236627

    Which Display Results Method are you using in the form?

    If you are using the Shortcode method, add the free WP-PageNavi plugin. The results.php file has code to use that plugin if installed.

    Anonymous
    #236634

    I using the Shortcode method.
    Ok, thanks. I will try this plugin.

    Trevor
    #236636

    Let me know how you get on with that?

    Anonymous
    #237282

    Hi,

    I’ve instaled WP-Page Navi and looks great but… 🙂
    When I activate this plugin, I see the old pagination and a new one.
    https://prnt.sc/rjagn4

    Maybe I have to delete something from results.php?

    Trevor
    #237307

    Ah, you need to remove our code. As you are using our Shortcode display results method, then the default template is the results.php file found in the plugin folder templates sub folder. YOU SHOULD NOT edit that file, as it WILL be replaced upon updates. Instead, follow the customising guide here:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    This is the code you need to remove:

    <div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div>
    <div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div>

    It appears twice in the template, once at the top, once at the bottom. Just those two lines.

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