wordpress中get_post_meta函数怎么用?有相关的解释吗?
在网页文件代码中加入:
get_post_meta($post->ID, “description”, true);
//获取ID是多少的那个文章的描述
可以返回description标签的值。
结果展示:
0
在网页文件代码中加入:
get_post_meta($post->ID, “description”, true);
//获取ID是多少的那个文章的描述
可以返回description标签的值。
结果展示: