怎样在WordPress分类归档中排除子分类的文章-WordPress主题

摘要:调用WordPress分类归档文章时,有时我们需要排除掉子分类的文章,而默认的wordpress分类页面中会默认显示分类…

调用WordPress分类归档文章时,有时我们需要排除掉子分类的文章,而默认的wordpress分类页面中会默认显示分类内所有文章,如果我们排除子分类文章,可以通过下面的代码来实现功能。

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