Skip Navigation

[Resolved] Split: Slider shows only one image

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to add a slider when I have a custom field with multiple images on one post.

Solution:

Use the Slider Block to add the slider.

Relevant Documentation:

https://toolset.com/course-lesson/sliders-of-static-images-for-pages/

and

https://toolset.com/course-lesson/dynamic-galleries-and-sliders-for-templates-displaying-repeating-image-fields/

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

This topic contains 2 replies, has 2 voices.

Last updated by kristenM 2 years, 9 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2288389

Hi Christopher.
Thank you for your reply.
This slider-function is totally new to me but I managed to build a slider with 3 posts in it.
Afterwards I'v been trying to build a new slider with 2 images from the same post - but for some reason it doesn't work.
To show you how it works I have a link for you here: (you have to login to see it)
hidden link
The problem is that it only shows the first image from the post and then takes another image from another post.
I have made custom fields in this post and in this custom field I can upload multiple images - maybe that is the problem?
Maybe you can tell me what am I doing wrong?
Kind regards Kristen

#2288401

Christopher Amirian
Supporter

Languages: English (English )

Hi Kristen,

As you have another approach for the slider, the post slider method will not work for you. The post slider takes one image per post and loops through the posts to create a slider.

But for your case, you have one post with a custom field that can have more than one image.

I suggest that you take the Slider Block approach, if you search in the Gutenberg (block editor) you will find a Toolset slider that you can use to add either static images or dynamically from a source that you want. That should be a better option for you.

For more information:

https://toolset.com/course-lesson/sliders-of-static-images-for-pages/

and

https://toolset.com/course-lesson/dynamic-galleries-and-sliders-for-templates-displaying-repeating-image-fields/

Thank you.

#2288461

My issue is resolved now. Thank you!