Skip Navigation

[Resolved] Slider with Dynamic Post Content – random display order and no pagination

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

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 6 replies, has 2 voices.

Last updated by Adrian Robbins 3 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2026767
Screenshot 2021-04-19 222123.jpg

Is there a way to create a slider with dynamic post content, but NOT USE pagination to achieve this?

We need the results for each query to be in a random order, and we know that pagination and random sorting do not work 🙁

Therefore, we are wondering if it is possible to create a slider with simple back and forward navigation icons (marked in red), so, not pagination, and this would allow all the records in the queury to be displayed as a 'single' randomised record set that slides back and forth.

There are never more than about 70 records in total for each query, so not a lot of data and most of the queries are well below this figure.

So, we would have 1 row with 3 columns, displaying the posts from the query and forward and back icons to move through them.

Basically, we are trying to replicate the functionality on this page at the bottom of the content

hidden link

#2027199

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

First of all, I would like to know, how you configured your image field. Is it a repeating custom image field or it's a custom image field having only one instance for every post?

#2027219
Screenshot 2021-04-20 103009.jpg

Hi Minesh

It's a repeating custom image field - see screen print below.

Cheers
Ade

#2027235

Minesh
Supporter

Languages: English (English )

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

#2027251

We have used the Image Slider block elsewhere on this new site, and are very familar with its functinalty.

However, this is not what we want.

So, lets say we have 30 member profiles, which we want to display. BUT only 3 at a time as per the original screen print. This would give us 10 pages. Then if we randomise the results, which the client MUST have, it all goes wrong, with many duplications and missing records. So, this is not a workable solution.

Therefore what we want to do, is have all 30 records, displayed effectively as a SINGLE ROW, but only 3 visible at any one time.

This would correct the errors caused by the randomisation, becasue they would effecively all be on one page. We would also need to increase the lint of 39 records per page as one or two of the sports have more than this.

Then all we would need is a forward and backwards button, to toggle through the records.

Is this doable with Toolset?

#2027295

Minesh
Supporter

Languages: English (English )

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

There is no such option available with image slider block to randomize the images.

You may try to check with flexslider or any other slider plugin that supports the random order:
=> https://stackoverflow.com/questions/19916612/flexslider-start-at-a-random-slide-and-then-continue-loading-sequentially

For more personalized assistance around custom code, you can consider hiring a professional from our list of recommended contractors:
=> https://toolset.com/contractors/

#2027345

My issue is resolved now. Thank you!