wordpress カスタム投稿タイプ カテゴリ別 表示

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
<?php
$args = array(
  'tax_query' => array(
    array(
      'taxonomy' => 'タクソノミー名',
      'field' => 'slug',
      'terms' => array('ターム')
    )
  ),
  'post_type' => '投稿タイプ名',
  'posts_per_page' => -1
);
$loop = new WP_Query($args);
while($loop->have_posts()): $loop->the_post();
?>
必要な処理
<?php endwhile; ?>
PAGE TOP