Skip Navigation

[Resolved] The gallery always shows the same image even if I change posts

This support ticket is created 3 years, 10 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Fabio Proni 3 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1974569
Modifica-modello-di-contenuto-‹-Golfstvigilseis-—-WordPress.png
Modifica-View-‹-Golfstvigilseis-—-WordPress.png
Edit-Content-Template-‹-Golfstvigilseis-—-WordPress.png

I am trying to:
Display a gallery through "toolset block" by taking data from a multiple image field

Link to a page where the issue can be seen:
All "packets" take photos from: hidden link

this another pack with other photos but as you will see they are the same: hidden link

I expected to see:
I expect to see the correct photos of the reference post type

Instead, I got:
The photos of a single type repeated on all "packages"

#1974729

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Fabio,

This should be working now. What was needed was to add a query filter to your view to limit it to only displaying items for the current post.

I've added the Post ID filter to the view and set it to get the ID from a shortcode parameter. Then I passed the current post ID into the view so that it can be filtered correctly.

Please double check the posts to see if they are now displaying the correct images on your end.

Thanks,
Shane

#1974759

My issue is resolved now. Thank you very much!