0

正如我在标题中所写,以前的自定义帖子和 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 } ?>

4

1 回答 1

0

我喜欢这个问题,帖子没有分配到任何语言。

于 2018-07-16T10:03:37.787 回答