Skip Navigation

[Resolved] pagination removes selection taxonomie

This support ticket is created 4 years, 8 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 4 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1332689

Tell us what you are trying to do?
I have a custom post type Item and I can refine the selection by filtering on the taxonomie tags. I have x items per page and can go to the next page in the pagination at the bottom of the page. But going to page 2 removes the selection and all items are shown

Is there any documentation that you are following?
looked in documentation and did a google search

Is there a similar example that we can see?
hidden link
This is the first page, clicking on page 2 in the bottom of the page gives you page 2 with all the items from the rubriek eten en drinken in stead of all the items in that Rubriek with the tag biologisch. So how can I keep the selection on page 2

What is the link to your site?
hidden link

#1332937
Screen Shot 2019-09-05 at 2.58.18 PM.png

Hi, it looks like search is configured to use AJAX, but pagination is not. I think this could be part of the problem. Could you turn on AJAX updates in the Pagination settings, then test again from hidden link? Here is a screenshot showing the AJAX settings. Please let me know the results and we can go from there.

#1333371
Schermafdruk 2019-09-06 13.46.40.png
Schermafdruk 2019-09-06 13.46.46.png

The settings on your screenshot are the same settings I have. (sorry it is a Dutch site so Dutch screenshots)
Second screen is settings custom search.. Don't know if that is correct. I have a message saying. Pagination combined with random ordening can lead to same items display on more than 1 page. It is recommended not to combine pagination with random ordening, unless you don't care unexpected results.
We have random ordenning because we don't want to show always the same items on the first page. Can this causing the problem?

#1334461

We have random ordenning because we don't want to show always the same items on the first page. Can this causing the problem?
Random ordering can cause a problem where some results appear multiple times in the list, and other results never appear. It should not cause the Biologisch filter problem you are experiencing. Normally that happens when the archive pagination is added by the theme, and not added using Toolset's pagination feature. Is the pagination shown here added in the WordPress Archive using Toolset's Pagination Controls feature, or is this added automatically by your theme? If it's added by your theme, you should add Toolset's pagination controls in the WordPress Archive. Then you can add this CSS to hide the controls added automatically by the theme, since they won't work correctly with Toolset's AJAX pagination feature.

.archive.term-eten-en-drinken .archive-pagination.pagination {
 display:none;
}

Let me know if you have questions about this.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.