カスタム ページ テンプレート (testimonials-page.php) を作成し、そのテンプレートで、次のループを使用してカスタム投稿タイプ 'testimonials' を読み込んでいます。
<?php query_posts(array(
'posts_per_page' => 5,
'post_type' => 'testimonials',
'orderby' => 'post_date',
'paged' => $paged
)
); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="quote">
<?php echo get_the_post_thumbnail($id, array($image_width,$image_height)); ?>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
それにページネーションを追加するにはどうすればよいですか?WP Paging プラグインをインストールしましたが、そのプラグインは、次を使用してページネーションを category.php に呼び出すとうまく機能します。
<p><?php wp_paging(); ?></p>
同じものを testimonial-page.php に挿入すると、フォーマットが壊れ、リンクが 404 になります。