Skip Navigation

[Closed] ajax pagination ordered by custom field breaks on pages after the first page

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.

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 3 years, 2 months ago.

Assigned support staff: Christian Cox.

Author
Posts
#922066

I am trying to output custom posts by custom field last name. When using non-ajax pagination, the order remains correct beyond the first page:
hidden link so that they are ordered by last name, but when using ajax pagination, the first page is ordered correctly by last name but when you click next or previous the order goes haywire: hidden link and the order of the names seem random. In addition, there are duplicate instances of one post.

THERE IS AN HTACCESS USERNAME AND PASSWORD

USER: demo
PASSWORD: minnow

I believe this is the view in question: hidden link

#922206

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Hi, let's try these two steps first.
1. Uncheck "Don't include current page in query result" unless this View will be shown on a single Investigator post. Having this box checked can lead to unexpected results if it's not necessary.

2. This View's Query Filters seem to be disconnected from its filter controls. On the non-staging URL, click the page 2 navigation link. The resulting URL is:
hidden link

When I click the page 2 navigation link on staging, you can see that the 4 filter criteria URL parameters are not shown in the URL:
hidden link

This indicates a problem in the Query Filters. Sometimes it happens when migrating between environments or when duplicating other Views. To solve the problem, delete the filters from the Query Filter and from the Search and Pagination editor. Then recreate them by inserting the filters in the Search and Pagination editor panel.

Let me know the results and we can go from there.

The topic ‘[Closed] ajax pagination ordered by custom field breaks on pages after the first page’ is closed to new replies.