【问题标题】:wordpress nextGen gallery by code can not click nextwordpress nextGen Gallery by code 无法点击下一步
【发布时间】:2014-02-22 19:10:44
【问题描述】:

我正在使用 wordpress 和 nextGen Gallery 插件版本 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] 时,它工作正常。

任何人的想法? 谢谢!

【问题讨论】:

    标签: php wordpress nextgen-gallery


    【解决方案1】:

    我发现了错误,问题不是nextGen Gallery,问题是我使用jquery colorbox并且colorbox将它识别为单张图片。

    【讨论】:

      猜你喜欢
      • 2017-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多