使用Taxonomy_Parameters 在WordPress WP\\u查询中,如下所示:
$args = array(
\'posts_per_page\' => 6,
\'post__not_in\' => $do_not_duplicate,
\'tax_query\' => array(
\'relation\' => \'AND\',
array(
\'taxonomy\' => \'category\',
\'field\' => \'slug\',
\'terms\' => \'art\',
),
array(
\'taxonomy\' => \'country\',
\'field\' => \'slug\',
\'terms\' => \'france\',
),
),
);
$myposts = get_posts($args);
您可以将“country”分类法作为url参数添加到链接中,并在单击类似按钮时获取它。