저는 현재 블로그 페이지에 최신 5 개의 게시물 만 표시하도록 Wordpress를 설정했습니다. 올바르게 작동하고 게시 발췌 부분이 원하는대로 표시됩니다.내 Wordpress 테마에서 어떻게 블로그 페이지의 페이지 매김을 추가 할 수 있습니까?
문제는 6 번째 게시물이 전혀 표시되지 않고 페이지 매김이 추가되지 않습니다. 다른 페이지를 표시하려면 '이전/다음'시스템이 필요하지만 어디서나 구현하는 방법을 찾을 수 없습니다.
현재 테마 코드 :
<?php
if (is_page()) {
the_content();
}
if (is_front_page()) {
the_content();
}
if ((is_single())) {
echo '<h2 class="entry-title"><a href="'; echo the_permalink(); echo'" title="'; the_title(); echo '">'; the_title();
echo '</a>';
echo '</h2>';
echo '<h6>'; the_excerpt(); '</h6>';
}
if ((is_home())) {
echo '<h2 class="entry-title"><a href="'; echo the_permalink(); echo'" title="'; the_title(); echo '">'; the_title();
echo '</a>';
echo '</h2>';
echo '<h6>'; the_excerpt(); '</h6>';
echo '<h4>';
echo '<a href="'; echo the_permalink(); echo '">';
echo '<img src="'; bloginfo('template_directory'); echo '/images/read_more.gif" alt="Read more..." border="0" />';
echo '</a>';
echo '</h4>';
echo '<hr />';
}
?>
<?php ?>
</div>
<div class="body-bottom"></div>
</div>
<?php endwhile; ?>
</div>
</div>
</div>
<?php get_footer(); ?>