我正在使用默认的WordPress图库(连同清洁画廊插件)来显示一些图像。画廊似乎没有一件事是分页。我想做的是在6张图片之后添加前面和下一个链接来浏览页面。
话虽如此,有几个插件声称添加了这种功能,但它们都是在没有新的媒体库的情况下开发的,这是WordPress 3.5的标准版本。我不想为用户改变体验.我只是想通过functions.php或者在循环本身上添加功能。我对所有的画廊应用相同的东西没有问题,所以如果修复可以找到画廊的短代码,那就太棒了!我不知道该怎么做,只是在这里大声思考一下。
任何帮助都是非常感谢的。
生成的代码如下所示:
<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>谢谢,
乔希
发布于 2013-01-17 21:54:14
我决定使用NextGEN库而不是默认库,有几个额外的步骤,但也不算太糟。
谢谢,乔什
https://wordpress.stackexchange.com/questions/81515
复制相似问题