WordPress 灯箱画廊通过帖子
如何按帖子区分受灯箱画廊插件影响的画廊?
现在发生的事情是说我有 2 个帖子。 第 1 篇文章有 3 张图片,我将它们变成了画廊 帖子 2 有 5 张图像,我将其变成图库。
现在,当我单击帖子 1 上的其中 1 张图像时,它确实会按预期打开灯箱图库。 然而,总图像显示为 8 张中的 1 张,我也可以循环浏览第 2 篇文章中的图像。 我怎样才能防止这种情况发生?
谢谢你, 球座
how can I separate the gallery affected by the lightbox gallery plugin by per post basis?
Right now what's happening is say I have 2 posts.
Post 1 has 3 images which I turn into a gallery
Post 2 has 5 images which I turn into a gallery
Now when I click 1 of the images on post 1, it does open the lightbox gallery as expected.
However, the total images says 1 of 8 and I'm able to loop through the images from Post 2 as well.
How can I prevent that?
Thank you,
Tee
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
天哪,我刚刚找到答案。
您需要执行两个步骤。如果你想单独处理画廊,请在[gallery]中添加不同的类名,并在lightbox-gallery.js中添加与类名一样多的代码。
T 恤
Oh man, I just find the answer.
You need to do two steps. If you would like to handle galleries separately, add different class names into [gallery] and add codes as many as class names into lightbox-gallery.js.
Tee