How does one get random posts for each category page?
ie. domain.com/?cat=4 so random posts show for only category 4, and so on for every other category page.
I've seen a few coding options but none that do random posts for the specific category page you are on.....
my archive.php page:
	
	
	
		
	
		
			
		
		
	
				
			ie. domain.com/?cat=4 so random posts show for only category 4, and so on for every other category page.
I've seen a few coding options but none that do random posts for the specific category page you are on.....
my archive.php page:
		Code:
	
	<?php get_header(); ?>
<div id="content">
    <div id="contentleft">
<h4><?php foreach((get_the_category()) as $category) { echo $category->cat_name . ' Category'; } ?> </h4>
                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
         <?php the_excerpt(); ?><div style="clear:both;"></div>
        <div class="clearfloat border_bottom"></div>
        <?php endwhile; else: ?>
        
        <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
        <p><?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?></p>
    </div>
    
<?php include(TEMPLATEPATH."/sidebar_post.php");?>
        
</div>
<!-- The main column ends  -->
<?php get_footer(); ?> 
	 
	 
 
		 
 
		
