如何将字段的值转换为标签?

时间:2019-05-07 14:18:42

标签: php wordpress tags advanced-custom-fields

我用高级自定义字段创建了一个字段,我希望wordpress获得添加到该字段的所有内容并将其作为标签。只是不知道我应该使用什么PHP代码来做到这一点?这是我的代码:

   <div class="col-12 d-flex align-content-center">
       <a href="<?php echo $the_first_10_row['first_link_of_row'];?>">
           <p><?php echo $the_first_10_row['first_name_of_item']; //this field should be known to wordpress to know it as a tag ?></p>
       </a>
   </div><!-- end col -->

示例:有人在该字段中写了“ Hello”。我想要这个:“带Hello->知道这是一个标签->将其放入标签列表中-> echo Hello”

0 个答案:

没有答案
相关问题