我有类似”技术”的类别, 我希望从该类别中获取所有帖子。然后, 我需要选择该帖子上使用的所有标签, 并按使用情况对其进行排序。但是我想计算技术类别中帖子的使用情况。
是否可以在不直接访问数据库的情况下进行?
#1
你应该使用get_terms, 因为它基本上是在处理分类法(标签)。
来源:
https://www.srcmini02.com/66160.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_40609.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57