For the OP, here is an example of what one of my category.php files looks like... ignore the html parts of course if you're going to use it:
Code:
<?php get_header(); ?>
<div class="large-9 columns">
<header class="site-header" role="banner">
<img src="/assets/img/header/<?php echo rand(1,15) ?>.jpg" />
</header>
<?php
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; }
query_posts($query_string."&showposts=30")
?>
<!-- Main Content -->
<h3 class="sectionTitle"><?php wp_title(''); ?></h3>
<ul class="small-block-grid-1 large-block-grid-3">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
if (is_user_logged_in()) {
get_template_part('templates/members/content', 'tpgrid');
} else {
get_template_part('templates/tour/content', 'tpgrid');
}
endwhile;
endif;
?>
</ul>
<?php if ( $wp_query->max_num_pages > 1 ) : // if there's more than one page turn on pagination ?>
<?php wp_pagenavi(); ?>
<?php endif; ?>
<!-- End Main Content -->
</div><!-- End large-9 -->
<?php if (is_user_logged_in()) { get_sidebar('members'); } else { get_sidebar('tour'); } ?>
<?php get_footer(); ?>