正如我在标题中所写,以前的自定义帖子和 next_post_links 工作正常,但是如果我激活 polylang-s 自定义帖子翻译,它们就不再工作了这是代码:
<div class = "page-content">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
<?php if ( is_single() ) { ?>
<div class="clear"></div>
<div class = "prev-next-links">
<div class = "previous"><?php previous_post_link(); ?></div>
<div class = "next"><?php next_post_link(); ?></div>
</div>
<?php } ?>