Skip Navigation

[Resolved] Sort by Featured Listings – round 2

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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 16 replies, has 2 voices.

Last updated by Nigel 1 year, 3 months ago.

Assisted by: Nigel.

Author
Posts
#2651315
Pic2.png
Pic1.png

Hi there. Sorry for the long wait between replies.

It looks like the search is working fine now. Thank you. The only issue I have now is pagination. I have roughly 30 total tuner entries (pic 1). I can see them all when I click submit without selecting a make/model/platform. When I enable pagination, it only displays 2 entries (pic 2). It should be displaying 3 pages of 10 correct? What exactly am I doing wrong?

Search works fine though even with the pagination enabled. Just don't understand why only 2 entries are coming up.

#2651407

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Pagination is not possible in this scenario.

You have a query retrieving a filtered set of posts that match your search criteria. If you add pagination, it then retrieves, say, posts 11-20 of these to display the second page of results.

You then apply some code to these results to remove duplicates based on post relationships, leaving your second page of results with maybe 2-3 posts, not 10.

There isn't any way around this unless you were to effectively code a bespoke pagination system. That is technically feasible, but is something you would need to recruit a developer for.