Support » Plugins » Hacks » subcategory posts pagination

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hmm why are you using $paged to create the second page? it should just work with the default theme files and code.

    Can you share the code you’re trying to use to get it working?

    Here is the code:

    $current_category = single_cat_title("", false);
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("category_name=". $current_category ."&posts_per_page=3&paged=". $paged);
    <?php $i = 1; if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div class="contenidos730">
    	<?php if ($i==1): ?><h3><?php echo $current_category ?></h3><?php endif; ?>
    	<div class="caja730">
    		<h1><?php the_title(); ?></h1>
    		<?php the_content(); ?>
    	<div class="shad730"><img src="<?php bloginfo('template_directory') ?>/img/caja730_shadow.png"></div>
    <?php $i++; endwhile; endif; ?>
    <?php wp_paginate(); ?>

    I have the same problem!!! It is probably a WP bug?

    My code is simple:

    $page = (get_query_var('paged')) ? get_query_var('paged') : 1; 
           if (is_category('blah1') OR is_category('blah2')){
            query_posts(array('post_type'=>array('post','ai1ec_event'),'paged' => $page));
           if(have_posts()) etc....

    novakpeter: I solve it creating a subpage with the subcategory name, and putting the code on it 🙁

    Man…that is a good idea, I will try it. It s not elegant solution right, but maybe it will work:-) Anyway, I filled a bug report here:

    So, we will see…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘subcategory posts pagination’ is closed to new replies.