admin管理员组文章数量:1426480
I am trying to exclude word 'Vape' and exclude category using wp_query. Is it possible?
$args = array(
's' => '-Vape',
'cat' => '-62',
'posts_per_page'=>'16',
'paged'=>$paged,
'orderby' => 'date',
'order' => 'DESC'
);
$wp_query = new WP_Query($args);
I use the code above but its not working. I don't get the items that have in their title the word 'Vape' which is right but i get the items of the category 62...any help appreciated!
本文标签: wp querywpquery exclude word and category
版权声明:本文标题:wp query - wp_query exclude word and category 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745380209a2656124.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论