wordpress获取分类的顶级分类-WordPress主题

摘要:wordpress子分类获取父分类 方法一 [crayon-65b8d2f9b2ea6447198008/] 方法二 w…

wordpress子分类获取父分类

方法一

方法二
wordpress获取分类的顶级父类
第一个函数(get_term_top_most_parent)接受一个分类ID和分类 ​​,并返回分类的顶级父类(或本身);

第二功能(hey_top_parents)工作在循环中,以及,给定的分类法,返回后的分类顶层祖先。

来源:http://www.wazhuti.com/307.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_13103.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?