试试这个。用于get\\u帖子中的tag\\u id。
$tax_terms = get_terms(\'media_category\', \'orderby=count&order=DESC&hide_empty=0\');
foreach ( $tax_terms as $tax_term ) {
$posts = get_posts(array(
"meta_key" => \'select\',
"meta_value" => 1,
"tag_id" => 5,
"post_mime_type" => "video",
"taxonomy" => $tax_term->taxonomy,
"term" => $tax_term->slug,
"numberposts" => 100,
"posts_per_page" => 100));