【发布时间】:2013-07-12 22:42:58
【问题描述】:
我目前正在使用 yoxview 图片库。 (www.yoxigen.com/yoxview/) 但这并不重要。我目前在 Wordpress 安装前设置的一个小型启动主页上对此进行了编码。我在这里尝试做的是允许通过 Yoxview 的图片库以原子方式抓取和拉取由 Wordpress 帖子分配的“精选”图片集。我假设我需要一些 PHP 来代替 href="" 和 src="" 但我不确定是什么。本质上,只是希望画廊动态运行并使用 Wordpress 帖子中设置的特色图片作为拇指填充。谁能帮我写这个?干杯。
<div class="thumbnails yoxview">
<a href="/wp-content/uploads/2013/06/broken-beer-bottle.jpg"><img src="/wp-content/uploads/2013/06/broken-beer-bottle.jpg" alt="First" title="The first image" class="thumb"/></a>
<a href="/wp-content/uploads/2013/06/29214_116842028347050_6051723_n.jpg"><img src="/wp-content/uploads/2013/06/29214_116842028347050_6051723_n.jpg" alt="" title="The SECOND image" class="thumb" style="max-height: 100px;"/></a>
<a href="/wp-content/uploads/2013/07/images.jpg"><img src="/wp-content/uploads/2013/07/images.jpg" alt="" title="The Third image" class="thumb" style="max-height: 100px;"/></a>
<a href="/wp-content/uploads/2013/07/solocups.jpg"><img src="/wp-content/uploads/2013/07/solocups.jpg" alt="" title="The Third image" class="thumb" style="max-height: 100px;"/></a>
</div>
可能是更好的改写;如何在 PHP 中编写“获取 Wordpress 特色图片”?
【问题讨论】:
-
您想要单张特色图片吗?或者附在一篇文章中的图片?