WordPressのカスタムポストタイプ設定をしています。私が作った
single-[customposttype].php
ただし、要求されたcustom-post-typeのみを表示するのではなく、URLにアクセスしてからcustom-typeのすべての投稿を表示します。
これは私が現在使っているコードのコピーです。
<?php query_posts("post_type=shorts"); while (have_posts()) : the_post(); ?>
<div class="header-promo">
<?php echo get_post_meta($post->ID, "mo_short_embed", true); ?>
</div>
<div class="content-details">
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
</div>
前もって感謝します :)
コードからquery_posts("post_type=shorts");
を削除するだけです。