首页
学习
活动
专区
圈层
工具
发布

分页廊
EN

WordPress Development用户
提问于 2013-01-14 15:39:14
回答 1查看 514关注 0票数 0

我正在使用默认的WordPress图库(连同清洁画廊插件)来显示一些图像。画廊似乎没有一件事是分页。我想做的是在6张图片之后添加前面和下一个链接来浏览页面。

话虽如此,有几个插件声称添加了这种功能,但它们都是在没有新的媒体库的情况下开发的,这是WordPress 3.5的标准版本。我不想为用户改变体验.我只是想通过functions.php或者在循环本身上添加功能。我对所有的画廊应用相同的东西没有问题,所以如果修复可以找到画廊的短代码,那就太棒了!我不知道该怎么做,只是在这里大声思考一下。

任何帮助都是非常感谢的。

生成的代码如下所示:

代码语言:javascript
复制
<div id='gallery-234-1' class='gallery gallery-234'>
    <div class='gallery-row gallery-clear'>
        <dl class='gallery-item col-3'>
            <dt class='gallery-icon'><a href='http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-11.jpg' title='gallery-(11)'><img width="184" height="184" src="http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-11-184x184.jpg" class="attachment-thumbnail" alt="gallery-(11)" /></a>
            </dt>
        </dl>
        <dl class='gallery-item col-3'>
            <dt class='gallery-icon'><a href='http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-10.jpg' title='gallery-(10)'><img width="184" height="184" src="http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-10-184x184.jpg" class="attachment-thumbnail" alt="gallery-(10)" /></a>
            </dt>
        </dl>
        <dl class='gallery-item col-3'>
            <dt class='gallery-icon'><a href='http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-5.jpg' title='gallery-(5)'><img width="184" height="184" src="http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-5-184x184.jpg" class="attachment-thumbnail" alt="gallery-(5)" /></a>
            </dt>
        </dl>
    </div>
    <div class='gallery-row gallery-clear'>
        <dl class='gallery-item col-3'>
            <dt class='gallery-icon'><a href='http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-4.jpg' title='gallery-(4)'><img width="184" height="184" src="http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-4-184x184.jpg" class="attachment-thumbnail" alt="gallery-(4)" /></a>
            </dt>
        </dl>
    </div>
</div>

谢谢,

乔希

EN

回答 1

WordPress Development用户

回答已采纳

发布于 2013-01-17 21:54:14

我决定使用NextGEN库而不是默认库,有几个额外的步骤,但也不算太糟。

谢谢,乔什

票数 0
EN
页面原文内容由WordPress Development提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://wordpress.stackexchange.com/questions/81515

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档