2011-11-24 4 views
1

이 블로그에는 4 개의 게시물이 있지만 3 개만 표시되기 때문에 ok이 작동합니다. 그러나 다음 및 이전 단추를 클릭하면 다음 게시물로 이동합니다. 왜 이것이 움직이지 않는지 확신 할 수 없습니다. 누군가는 이것에 관해서 어떤 것을 흘릴 수 있습니까, 고마워요.뉴스 페이지의 페이지 매김이 작동하지 않습니다.

<!--BEGIN CONTENT--> 
    <article id="content"> 
    <?php if (have_posts()) : the_post(); ?> 
    <div class="post post-page" id="post-<?php the_ID(); ?>"> 

    <div class="post-content our-news"> 
    <?php the_content(); ?> 

    <?php 

    $page = get_query_var('page'); 

    query_posts(array('category_name' => 'Our News', 'posts_per_page' => 3, 'paged' => $page)); 

    ?> 
    <ul id="news"> 
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 

      <li class="post" id="post-<?php the_ID(); ?>"> 

       <div class="box"> 

        <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> 
         <?php the_post_thumbnail('portfolio-thumb'); ?> 
        </a> 

       </div> 

       <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> 
       <span><?php the_time('F jS Y') ?></span> 

       <div class="entry"> 
        <?php the_content(); ?> 
       </div> 

      </li> 

     <?php endwhile; ?> 

     <div class="clear"> 
</ul> 

     <div class="navigation"> 
      <div class="alignleft"><?php next_posts_link('<<', 3) ?></div> 
      <div class="alignright"><?php previous_posts_link('>>', 3) ?></div> 
     </div> 

    <?php else : ?> 

     <h2 class="center">Not Found</h2> 
     <p class="center">Sorry, but you are looking for something that isn't here.</p> 

    <?php endif; ?> 
    <?php wp_reset_query(); ?> 




    <?php wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'HAWK_FRONT'), 'after' => '</div>')); //end link page ?> 

    <?php edit_post_link(__('Edit', 'HAWK_FRONT'), '<div class="edit-link">', '</div>'); //end edit link ?> 

</div> 
<!--end post page--> 
<?php else : ?> 

<!--BEGIN NO POST--> 
<div class="no-post"> 
<h2><?php esc_html_e('Not Found', 'HAWK_FRONT'); ?></h2> 
<p><?php esc_html_e("Sorry, but you are looking for something that isn't here.", 'HAWK_FRONT'); ?></p> 
</div> 
<!--END NO POST--> 

답변

0

각 페이지마다 6 개의 다른 기사가 표시됩니다.

+0

안녕하세요 Matthew 저는이 분류 작업을 처리했습니다. 감사합니다. –

관련 문제