Support » Plugins » Tag archive pagination don't work

  • Hi, I have this code that doesn’t work, that is, the pagination don’t work. When I click to get page 2 I get 404 Nothing found page. And it always shows like there are only two pages of posts when I know for a fact that there should be 4 pages (18 posts associated with one particular tag..). Here’s the code

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $temp = $companies;
    $companies = null;
    $companies = new WP_query(array(
            'post_type' => 'company',
    	'tag' => $tag,
    	'posts_per_page' => 5,
    	'meta_key' => 'member',
    	'meta_value' => 'Yes',
    	'orderby' => 'title',
    	'order' => 'ASC',
    	'paged'    => $paged
    <?php  while ($companies->have_posts()) : $companies->the_post(); ?>
           <li><?php the_title(); ?></li>
    <?php endwhile; ?>
    <div id="navigation">
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>

    Can anyone point me to solution … ?

Viewing 1 replies (of 1 total)
  • Anydog


    Well, I tried all kinds of solutions and none of them worked …
    So, I’m step away to remove pagination from tag archive page (i.e. I admit defeat ).
    This is my last call … please does anyone know solution to this ?

Viewing 1 replies (of 1 total)
  • The topic ‘Tag archive pagination don't work’ is closed to new replies.