help! need category to return all posts, not just 10 most recent!
-
i’m working on designing and building my portfolio site with wordpress:
ankatankdesign.com/makeswhen you click a section (category) – let’s just look at “print,” it shows the problem the best: https://ankatankdesign.com/makes/some/print/
it’s returning only the top ten projects (posts) in the section (category). there should be 11 showing. that number will grow though, and I’d like there to be no limit, no pagination, just a page that’s as long as it needs to be to show all the posts.
my “sidebar-right.php” code is what is displaying the categories on the print page that we’re looking at. Can anyone see from my sidebar code, what I would need to do/change make it show all posts, not just the ten most recent? thanks in advance!
the sidebar code is:
<div id="secondary" class="sidebar-CAT"> <?php $cat_title = single_cat_title('',false); if (!$cat_title=='') { if ( !empty($categorydesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); } ?> <?php if(is_single()) { $category = get_the_category(); query_posts('category_name=' . $category[0]->cat_name); } else { query_posts('category_name=' . single_cat_title(false, false)); } while (have_posts()) : the_post(); ?> <div id="sidebarCAT"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="https://www.aaank.com/images/post_thumbs/<?php $values = get_post_custom_values("theThumb"); echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a> <div class="underThumbTxt"><?php if (strlen($post->post_title) > 15) { echo substr(the_title($before = '', $after = '', FALSE), 0, 15) . '...'; } else { the_title(); } ?></div> </div> <?php endwhile; wp_reset_query(); ?> <br style='clear:both;' /> </div>
- The topic ‘help! need category to return all posts, not just 10 most recent!’ is closed to new replies.