WordPress模板标签the_meta用于输出文章自定义字段,必须用在The Loop主循环中。
the_meta()
该函数没有参数,以无序列表的方式输出文章自定义字段。
函数使用示例
以上代码输出类似如下的内容:
扩展阅读
the_meta()函数位于:wp-includes/post-template.php
相关函数:
- get_post_meta()
- add_post_meta()
- update_post_meta()
- delete_post_meta()
- get_post_custom()
- get_post_custom_values()
- get_post_custom_keys()
原创文章,作者:,如若转载,请注明出处:https://ce.771633.xyz/2132.html