'post', 'post_status'=>'publish', 'post_type' => $query_post_type, 'p' => $query_post_id, ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>

MAGAZINE

post_type == 'talk' ): echo "

対談

"; elseif($post->post_type == 'interview' ): echo "

インタビュー

"; elseif($post->post_type == 'article' ): echo "

記事

"; else: endif; ?>
post_type == 'article'): ?>
".post_custom('subtitle').""; ?>
post_type == 'talk' or $post->post_type == 'interview'): ?>
".$t."

"; } else: echo "

".post_custom('target')."

"; endif; ?>
".$t.""; echo "

".$t2."

"; } else: echo "

".post_custom('target')."

"; echo "

".post_custom('targetHistory')."

"; endif; ?>
"; echo "

".$t."

"; echo "

".$t2."

"; echo "
"; } else: echo "
"; echo "

".post_custom('remarker')."

"; echo "

".post_custom('remark')."

"; echo "
"; endif; ?>
post_type == 'article'): ?>
'post', 'post_status'=>'publish', 'post_type' => $query_post_type, 'orderby' => 'date',//キーの指定 'order' => 'ASC',//並び順の指定 'posts_per_page' =>-1, ); $the_query = new WP_Query( $args ); $tempId = 0; $crntflg = false; if ( $the_query->have_posts() ) : while ($the_query->have_posts()) : $the_query->the_post(); if($crntflg){ $next_post_id=get_the_ID(); break; } if( get_the_ID() == $query_post_id){ $crntflg = true; $prev_post_id=$tempId; } $tempId = get_the_ID(); endwhile; endif; if($next_post_id != 0): ?>

$paged2, //「現在のページ番号」はここでも指定する 'posts_per_page' => 8, 'post_type'=>'post', 'post_status'=>'publish', 'post_type' => array('talk', 'interview','article' ), ); $the_query = new WP_Query($args); $paged =0; if ( $the_query->have_posts() ): ?>
have_posts() ): $the_query->the_post(); $paged++; if ($paged%2 == 1): ?>
post_type == 'talk' ): echo "

対談

"; elseif($post->post_type == 'interview' ): echo "

インタビュー

"; elseif($post->post_type == 'article' ): echo "

記事

"; else: endif; ?>

"; for ($i = 0 ; $i < count(post_custom('target')); $i++) { $t = post_custom('target')[$i]; if ($i == 0): echo $t; else: echo "
".$t; endif; } echo ""; else: echo "

".post_custom('target')."

"; endif; ?>
current_post == $the_query->post_count - 1): ?>
max_num_pages,$paged2,$url ); endif; //wp_reset_postdata(); endif; ?>