WordPress获取文章所有标签函数:wp_get_post_tags()-WordPress主题

摘要:wp_get_post_tags()函数的作用是获取文章的标签,函数返回一个包含所有标签的数组,

wp_get_post_tags()函数的作用是获取文章的标签,函数返回一个包含所有标签的数组,
其结构如下,其中$post_id为文章ID,$args为返回的数组。

常用方法如下:

来源:http://www.wazhuti.com/466.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_12985.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?