不建议使用query_post() 因为它用查询的新实例替换页面的查询。对于常规post查询,请使用WP_Query 或get_posts.
在这里tag__not_in 接受id of the tag and not the slug, 所以更换sold 具有标记的idsold
喜欢
$args = array(
\'orderby\'=> \'date\',
\'order\' => \'DESC\',
\'tag__not_in\' => sold_tag_ID
);
$allposts = new WP_Query($args);