我有一个自定义帖子类型名称“ jxta_staff”和分类法“ taxonomy_staff”。我想在单个发布文件“ single-jxta_staff.php”上添加上一个和下一个发布链接按钮
我使用了以下代码,所有代码均无效-
1. <?php previous_post_link( '%link', 'Previous post', FALSE); ?>
2. <?php previous_post_link('%link', 'prev button', FALSE, ' ', 'taxonomy_staff' ); ?>
3. <?php previous_post_link('%link', '<< Previous Post', $in_same_term = false, $excluded_terms = '', $taxonomy = 'taxonomy_staff'); ?>
4. <?php previous_post_link( '%link', 'Next post in category', FALSE, ' ', 'taxonomy_staff' ); ?>
5. <?php previous_post_link('%link', 'jxta_staff', FALSE) ?>
6. <?php next_post_link( $format, $link, $in_same_term = false, $excluded_terms = '', $taxonomy = 'taxonomy_staff' ); ?>