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;
?>
";
}
else:
echo "
";
echo "
".post_custom('remarker')."
";
echo "".post_custom('remark')."
";
echo "";
endif;
?>
post_type == 'article'):
?>
$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;
?>