Forums › Forums › Search & Filter Pro › Custom pagination style
- This topic has 5 replies, 2 voices, and was last updated 4 years, 8 months ago by Trevor.
-
Anonymous(Private) March 19, 2020 at 10:12 pm #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/rjagn4Maybe I have to delete something from results.php?
Trevor(Private) March 20, 2020 at 8:23 am #237307Ah, 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.
-
AuthorPosts