Forums › Forums › Search & Filter Pro › Last page of pagination: Page Not found
- This topic has 15 replies, 2 voices, and was last updated 9 years, 4 months ago by Ross.
-
Anonymous(Private) July 9, 2015 at 10:33 am #21103
Hi,
Im using custom post type with somethig like portfolio.
Everything is fine except the last page from pagination.I got
“Not Found
Sorry, but the page you were trying to view does not exist.”Did someone has the same problem and know how to fix it?
The problem is only with templates where I use searchfilter.regards
PiotrRoss Moderator(Private) July 9, 2015 at 11:51 am #21105Hi Piotr
I’ve not come across that problem before.
How are you generating your pagination?
Do you have a link I could look at?
Thanks
Ross Moderator(Private) July 9, 2015 at 1:18 pm #21124Hey Piotr
I think it may be your pagination functions.
Can you enable the default pagination that is supplied with the results template, or try using WPPageNavi and send me a link again?
Thanks
Anonymous(Private) July 9, 2015 at 1:21 pm #21127take a look, I just changed labels for pagination:
<div class=”pagin row p-5 mt-10″>
<div class=”col-xs-12 text-right”>
<span class=”amount”><?php echo $pagenr; ?> <?php echo $query->query[‘paged’]; ?> <?php echo $of; ?> <?php echo $query->max_num_pages; ?></span><span class=”nav-next”><?php previous_posts_link( ‘<span class=”sr-only”>nastepna strona</span>’ ); ?></span>
<span class=”nav-previous”><?php next_posts_link( ‘<span class=”sr-only”>poprzednia strona</span>’, $query->max_num_pages ); ?></span></div>
</div>regards
Ross Moderator(Private) July 10, 2015 at 12:40 pm #21200Hi Piotr
Can you set up a test page for me to look at with the original results template?
This will allow me to maybe figure out what is going on.
Thanks
Ross Moderator(Private) July 10, 2015 at 1:57 pm #21220Ah no, just create a new search form and follow the instructions here under A Quick Tutorial:
Make sure this new search form is using the original
results.php
supplied with Search & Filter – then provide me with a link so I can test a “clean” version of S&F and the results template.Thanks
Anonymous(Private) July 11, 2015 at 10:31 pm #21280Hi Ross
Before I will take your time I’m trying to setup this again and differently but what I noticed is ajax doesnt work for pagination.
Is it possible some how to get access to your live demo page?I would like to be sure I set up everything the same way.
thangs
Piotr
-
AuthorPosts