Support » Themes and Templates » Custom Category Navigation

  • Sparkydude03


    I was wondering if you could help me out with a quick line of code. I am trying to create a styled news slider that has different tabs. In each tab it’s supposed to pull posts from a specific category and display 5 of each. Is this the correct way to do it?

    <?php query_posts('cat=35');
    			if(have_posts()) : ?>
    			<?php while(have_posts()) { the_post(); ?>
    				<?php if($post_count >= 5)
    				<div class="post"><a onmouseover="Tip('<?php echo nl2br($post->post_excerpt); ?>')" href="<?php if ($source != '') { echo $source; } else { the_permalink(); } ?>"><?php the_title(); ?></a> <small><?php the_date(); ?></small>
    				<?php endwhile; ?>
    				<?php } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Category Navigation’ is closed to new replies.