wordpress カスタム投稿のタームをカスタムフィールドテンプレートを使用して画像を一覧表示 2012年9月6日 Tag:Wordpress | カスタム投稿 | ターム | 画像 <div class="img-box"> <ul> <?php $args = array( 'post_type' => 'topics', 'taxonomy' => 'info', 'term' => 'event', 'numberposts' => '-1', ); $my_posts = get_posts($args); foreach ( $my_posts as $post ) { setup_postdata($post); ?> <?php $attach_id = get_post_meta($post->ID,"メイン画像",true); $image_info = wp_get
![wordpress カスタム投稿のタームをカスタムフィールドテンプレートを使用して画像を一覧表示 | WEBデザイナーのしおり](https://cdn-ak-scissors.b.st-hatena.com/image/square/8f8dcbfdc0911e792d91e12d3242da8bbe2ac479/height=288;version=1;width=512/http%3A%2F%2Fmsweb.moo.jp%2Fwordpress%2Fwp-content%2Fuploads%2Ftaem.gif)