WordPress 및 부트 스트랩으로 사용자 정의 테마를 만들었고 모든 것이 잘 작동합니다 (이전 및 다음 링크는 singe.php에 있음). 사전에WordPress custom posts 이전 및 다음 링크가 작동하지 않습니다.
<?php get_header(); ?>
<article>
<div class="container single-project">
<?php if (have_posts()) : while (have_posts()) : the_post();?>
<div class="row">
<div class=" col-md-4 col-lg-4 pull-right">
<header class="entry-header">
<h1 id="post-<?php the_ID(); ?>"><?php the_title();?></h1>
<hr>
</header><!-- .entry-header -->
</div>
<div class=" hidden-md hidden-lg"><hr></div>
<div class="col-md-4 col-lg-4"><?php the_content(); ?></div>
<?php previous_posts_link() ?>
<?php next_posts_link() ?>
</div> <!-- end of row -->
</div> <!-- end of container -->
<?php endwhile; endif; ?>
</article>
<?php get_footer(); ?>
감사 :
여기 내 코드입니다.
이러한 메서드는 WordPress 2.0.0 이후 사용되지 않습니다. 위와 같이 next_post_link()를 사용하십시오. –