我使用wordpress和nextGen图片库插件1.9.13版本,并使用以下代码读取图库:
$newnggShortcodes = new NextGEN_Shortcodes;
echo $newnggShortcodes->show_gallery( array("id"=>$currGalId,"template"=>"mygallery") );这很好,然后我可以点击图像,它会弹出,但我不能点击下一个或上一个图像,它只弹出我点击的那个。
当我签出代码时,rel标记在那里,我看上去如下所示:
<div id="ngg-gallery-10-112" class="ngg-galleryoverview">
<div id="ngg-image-256" class="ngg-gallery-thumbnail-box">
<div class="ngg-gallery-thumbnail">
<a class="cboxElement" rel="lightbox[set_10]" title=" " href="PATH-TO-IMAGE.jpg">
<img class="colorbox-manual" width="420" height="200" src="PATH-TO-IMAGE.jpg.jpg" alt="dsc_0007" title="dsc_0007">
</a>
</div>
</div>
<div id="ngg-image-257" class="ngg-gallery-thumbnail-box">
<div class="ngg-gallery-thumbnail">
<a class="cboxElement" rel="lightbox[set_10]" title=" " href="http://PATH-TO-IMAGE.jpg.jpg">
<img class="colorbox-manual" width="420" height="200" src="http://PATH-TO-IMAGE.jpg.jpg" alt="dsc_0008" title="dsc_0008">
</a>
</div>
</div>当我在后端使用[nggallery id=10]时,它可以正常工作。
有什么主意吗?谢谢!
发布于 2014-02-22 11:10:44
我发现了错误,问题不是nextGen图片库,问题是我使用了jquery彩色盒,而彩色盒将其识别为单一图片。
https://stackoverflow.com/questions/21928987
复制相似问题