我在同一页上有常规帖子和一个自定义帖子类型(“SS13”)。当您点击每个页面的“单个”页面时,下一个\\u post\\u链接和上一个\\u post链接仅在其帖子组(常规帖子或“SS13”)内有效。我找不到解决方案,因此下一个/上一个工作无法跨越所有帖子。CPT用于行政部门的组织目的。
<?php /* Start loop */ ?>
<?php while (have_posts()) : the_post(); ?>
<div class="small-10 large-centered columns">
<article <?php post_class(\'standard\') ?> id="post-<?php the_ID(); ?>"><!-- \'Standard\' added to the post class for style -->
<div class="row banner">
<div class="large-12 columns">
<?php if(get_field(\'standard_banner_image\')){ ?>
<img src="<?php the_field(\'standard_banner_image\'); ?>" alt="Banner Image" />
<?php } ?>
</div>
</div><!-- end .row -->
</article>
</div>
<!-- Post Navigation -->
<div class="row">
<div class="small-12 large-centered columns">
<div class="navigation">
<p class="center"><?php next_post_link(\'%link\', \'<span class="nextprevious">Next Post:</span> %title\', \'FALSE\'); ?>  | <?php previous_post_link(\'%link\', \'<span class="nextprevious">Previous Post:</span> %title\', \'FALSE\'); ?></p>
</div>
</div>
</div><!-- end of .row -->
<?php endwhile; // End the loop ?>
任何帮助都会很好。非常感谢。