カスタム投稿個別ページの前後ナビ

情報を追記している場合はありますが、古い情報を訂正はしていませんので、公開年月日を参照してください。プラグイン・タグ、いずれもワードプレス・PHPのバージョン等によって動作しない場合もあります。

カスタム投稿の個別ページに「前のページ」「次のページ」のナビゲーションを付けるプラグイン:Ambrosite Next/Previous Post Link Plus

<?php next_post_link_plus(array('order_by' => 'post_date', 'in_same_tax' => 'true', 'format' => '<p class="next">%link</p>',  'in_same_tax' => true, 'link' => '次のページ' )); ?>

order_by をカスタムフィールドの値にすることもできるので(‘order_by’ => ‘custom’, ‘meta_key’ => ‘event_date’ / ‘order_by’ => ‘numeric’, ‘meta_key’ => ‘event_timestamp’)、イベントの日付順に移動、なども可。詳しくはこちら参照

2013.5.17追記
リンクは画像で、前のページがない時はトップに設定したindex.htmlにリンクする、覚書

<?php if(get_previous_post()) { ?><?php previous_post_link_plus( array('order_by' => 'date','format' => ' %link ','link' => '<img src="'.get_template_directory_uri().'/img/arrow_back.png" width="39" height="50" alt="前" />',)); ?><?php } else { ?><a href="<?php echo home_url(); ?>/xxxxx/index.html"><img src="<?php echo get_template_directory_uri(); ?>/img/arrow_back.png" width="39" height="50" alt="前" /></a><?php } ?>