Skip Navigation

[Resolved] Toolset Gallery unable to display more than 10 images

This support ticket is created 4 years, 2 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 3 voices.

Last updated by terryE 4 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1431855

Just following on from this thread, which now closed and wont let me upload a sql file.

https://toolset.com/forums/topic/toolset-gallery-unable-to-display-more-than-10-images/

#1431857

Not sure how to privately reply....

"Please provide database dump file(ZIP file) of your website, also point out the problem page and content template URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/"

#1432363

Hello,

Please follow our document to make the duplicator package:
https://toolset.com/faq/provide-supporters-copy-site/

Upload the package files into your own google drive disk, and share the link in below private message box.

#1437977

Minesh
Supporter

Languages: English (English )

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

Luo is on holiday today. He will get in touch with you as soon as he will get back to work.

#1439133
Gallery.JPG

Thanks for the details, I can import the database dump file in my localhost with a fresh wordpress installation + the latest version of Toolset plugins, and it works fine in my localhost, I can see 13 image items in the Gallery block of post "17 January 2020".

See screenshot Gallery.JPG

So there should be some compatibility issue in your website, please try these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP, and test again

3) If you need more assistance to locate the problem, please provide a full copy of your website in below private message box.
You can put the duplicator package file in your own google drive disk, and share the link only.

#1440773

I disabled plugins and switched theme, but found that was not the issue.

I found that moving the condition to being around the H2, rather than around the whole for-each loop, fixed the issue.

So I think there is an issue with Toolset with nested for-each of 10+, inside a condition.

The reason it worked ok when you tested on Twenty Theme, is that you would have had to remove the condition for it to work, as the condition contains a function from functions.php of the original theme.

Thanks for your help resolving this though 🙂

Was:

[wpv-conditional if="( '[get_event_date_gone]' eq '1' ) AND ( $(wpcf-event-gallery) ne '' )"]
<div class="row event-only">
<div class="popup-gallery">
<h2 class="mb50 txt-cent">Gallery</h2>
[wpv-for-each field="wpcf-event-gallery"]
<a href='[types field="event-gallery" output="raw"][/types]' data-lightbox="wpcf-images-set">[types field="event-gallery" size="medium" align="left" resize="crop" separator=" "][/types]</a>
[/wpv-for-each]
</div>
</div>
[/wpv-conditional]

To:

<div class="row event-only">
<div class="popup-gallery">
[wpv-conditional if="( '[get_event_date_gone]' eq '1' ) AND ( $(wpcf-event-gallery) ne '' )"]<h2 class="mb50 txt-cent">Gallery</h2>[/wpv-conditional]
[wpv-for-each field="wpcf-event-gallery"]
<a href='[types field="event-gallery" output="raw"][/types]' data-lightbox="wpcf-images-set">[types field="event-gallery" size="medium" align="left" resize="crop" separator=" "][/types]</a>
[/wpv-for-each]
</div>
</div>

#1440775

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.