2011-01-25 11 views
0

ページ下部にページ区切りを付けたカテゴリページを作成しました。たびに2ページ目に行きますが、URL構造は変わりますが、私のループからの投稿は変わりません。ほぼ同じループを持つブログページのページングは​​うまく機能しています。私が間違ってやっていることへのヒント?私はまた、中にWP-ページ分割プラグを使用しています。著者とカテゴリのアーカイブでページネーションが正しく機能していません

<ul class="blogpostings"> 
    <?php if (have_posts()) : ?> 

     <?php while (have_posts()) : the_post();?> 
      <li> 
      <?php if (has_post_thumbnail()):?> 
       <?php 
       $image_id = get_post_thumbnail_id(); 
       $image_url = wp_get_attachment_image_src($image_id, 'thumbnail', true); 
       echo '<a href="' . get_permalink($post->ID) . '" title="' . get_the_title($post->ID) . '"><img src="' . $image_url[0] . '" title="' . get_the_title($post->ID) . '" alt="' . get_the_title($post->ID) . '" /></a>'; 
       ?> 
      <?php endif; ?> 
       <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2><br/> 
       <h3><?php the_author_posts_link(); ?> <span class="date">| <?php the_time('F d, Y') ?> |</span> <?php comments_popup_link('Post Comment', '1 Comment &#187;', '% Comments &#187;'); ?> 
       <fb:like href="<?php the_permalink() ?>" layout="button_count" width="100" font="lucida grande"></fb:like> 
       </h3> 
        <?php the_excerpt(); ?> 
        <p class="postreadmore"><a href="<?php the_permalink() ?>" class="arrow"> Read More </a></p> 
      </li> 
     <?php endwhile; ?> 
      </ul> 
     <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?> 

      <?php if(function_exists('wp_paginate')) { 
       wp_paginate(); 
      } ?> 

     <?php } ?> 
     <?php endif; ?> 
     </div> 
+0

今後の参考として、http://wordpress.stackexchange.com/はWordPressの質問のためのStackExchangeサイトです。 –

答えて

関連する問題