【发布时间】:2013-08-31 23:14:01
【问题描述】:
我试图在我的主题中使用简单的字段,但我无法将其放入主题中,我尝试了所有方法。
我已经在我的新帖子中显示了这个:
http://pokit.org/get/?1cbbe77cc829c2c875e11d9a58ac5866.jpg
如何让简单的字段在我的 single.php 中生成:
<li>
simple fileds content (value)
</li>
当我去添加+去生成另一个
<li>
simple fileds content (value)
</li>
谢谢!
【问题讨论】:
-
什么是“简单字段”?
-
我已经想出了如何循环一个文件,像这样:
<?php $repeatable_field_values = simple_fields_values("text_page"); foreach ($repeatable_field_values as $values) { echo " <li> <div class='small-12 large-6 columns text'> $values> </li>"; } ?>但现在我还需要弄清楚如何放置一个图像字段?
标签: content-management-system wordpress