2014-09-23 4 views
2

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(); ?> 

감사 :

여기 내 코드입니다.

답변

1

당신은 당신이 그것을 스타일 수처럼, 바람직하게는 일부 사업부 내부

</article> 

<?php previous_posts_link() ?> 
<?php next_posts_link() ?> 

를 이동해야

<div class="navi"> 
    <?php previous_posts_link() ?> 
    <?php next_posts_link() ?> 
</div> 
관련 문제