Skip Navigation

[Resolved] I have problems with pagination

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 2.10 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 3 voices.

Last updated by Minesh 6 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#599801

I am trying to insert a pagination to a view.
This view use Pagination enabled with manual transition and page reload, Individual settings, update views results every time an input changes and update URLs after loading search result.
When the user makes a change in filters, pagination stay the same than anteriour change.
User have to refresh page to see real pagination.
I use the same way to construct pagination as classified-site pagination example.
Can you help me?

#600093

Dear Oriolc,

Please elaborate the question with more details:
pagination stay the same than anteriour change
What kind of "anteriour change" do you need?

Views pagination and custom search form work like this:
When user submit the custom search form, it will reset the pagination to page 1.

And here are documents for:
Views Pagination – Split Content into Pages
https://toolset.com/documentation/user-guides/views-pagination/
Building Custom Searches for Any Content Type
https://toolset.com/documentation/user-guides/front-page-filters/
For your reference

#600124

My problem is:
If you go to my website, COMPRAR page, if I use full page refresh when visitors click on the search button with input values auto-updating it works good.
But if I use AJAX results update when visitors change any filter values, pagination becomes crazy. User makes changes in filters and paginations stay as the previous filter change.
That's normal????

#600140

No, it is abnormal, please point out the problem page URL and view URL, where and how can I see the problem:
pagination becomes crazy

And since you are using other plugins and a custom theme, I need your permission to deactivate plugins and switch theme, please backup your website first.

#600183

Ok. Yesterday I made a backup. You have my permission.
The page is: hidden link
And the view is: Cerca compra
Thanks!!!!

#600381

Thanks for the details, I assume we are talking about this problem:
1) Edit the view "Cerca compra", in section "Custom Search Settings", enable option "Update the Views results without reloading the page"
The problem is in section "Loop Output Editor", shortcode:
[wpv-pager-nav-links output="bootstrap" previous_next_links="true"]
2) In the front-end, hidden link, choose option "Cases rústiques i de poble", and click the submit button.
The pagination display 8 pages, but it should display only 3 pages.

Can you confirm it is the problem you mentioned above?

If it is, please check our document:
https://toolset.com/documentation/user-guides/views-pagination/#inserting-pagination-controls
section "Inserting Pagination Controls":
... you can add pagination controls in the Filter Editor section.

So you can try to put the pagination shortcode into "Filter Editor" section, and test again.

For the problem: the pagination shortcode does not work as expected in the "Filter Editor" section, if you agree, we can take it as a feature request.

#600437

I answer your questions:
In the front-end, hidden link, choose option "Cases rústiques i de poble", and click the submit button.
The pagination display 8 pages, but it should display only 3 pages.
Can you confirm it is the problem you mentioned above? Yes. But when I use Update the View results only when clicking on the search button and Reload the page to update the View options there is no problem with results. My real problem is that I want to use Update the View results every time an input changes in that view. The real problem appears when I use that option. Then pagination becomes inestable.

So you can try to put the pagination shortcode into "Filter Editor" section, and test again. If I do that, pagination appears before the results, cause I have previous filters up and I don't want that appears after the results. I can't separate filters???

#600701

As I mentioned above, the Pagination shortcode [wpv-pager-nav-links] won't be able to work as expected outside "Filter Editor" section, if you agree, we can take it as a feature request, our developers will evaluate it.

Currently, you will need to disable the AJAX search feature.

#600775

Ok, thanks.
If you can take it as a feature request to your developers will evaluate it, that will be great.
Just one thing,
In your reference sites->classified site->in parametric ads view you can find the [wpv-pager-nav-links output="bootstrap" previous_next_links="true"] in the loop output editor cause is the only way that pagination appears after loop output results.
I think problems appears when you try to use AJAX with pagination outside filter, but no when you use Full page refresh.

If you have some information about this and you can send to me, it will be great!!!!!!

#601112

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Luo is on vacation. This is Minesh here and I'll take care of this ticket and try to help you further. Hope this is OK.

Yes - I will send your concern to our Devs and report as feature request for assessment.

Kindly open a new ticket for your each new question. This will help other users searching on the forum.