Tags 我如何进行Wordpress查询,只使用与文章相关联的一些标记,而不是所有标记?

Tags 我如何进行Wordpress查询,只使用与文章相关联的一些标记,而不是所有标记?,tags,wordpress,Tags,Wordpress,我正在尝试使用标签在我的网站上显示相关内容。 我的帖子有多个链接到类似内容的标签 在文章上运行查询时,我希望忽略某些标记。 这可能吗 e、 g A柱有3个标签,标签1、标签2和标签3 B柱有5个标签,标签1、标签2、标签4、标签5和标签6 use this wp query . I hope it will work for you. $the_query = new WP_Query( array( 'tag__not_in' => array( 10 ) ) ); while (

我正在尝试使用标签在我的网站上显示相关内容。 我的帖子有多个链接到类似内容的标签

在文章上运行查询时,我希望忽略某些标记。 这可能吗

e、 g

A柱有3个标签,标签1、标签2和标签3

B柱有5个标签,标签1、标签2、标签4、标签5和标签6

use this wp query . I hope it will work for you. 

$the_query = new WP_Query( array( 'tag__not_in' => array( 10 ) ) );

while ( $the_query->have_posts() ) : $the_query->the_post();

endwhile;
对于我的查询,我要求始终忽略标记1和标记2

我的理想结果是

A柱显示Tag-3,B柱显示Tag-4、Tag-5和Tag-6

use this wp query . I hope it will work for you. 

$the_query = new WP_Query( array( 'tag__not_in' => array( 10 ) ) );

while ( $the_query->have_posts() ) : $the_query->the_post();

endwhile;