hi, further to this idea i have the problem if the post is in one or more category it displays a list within a list, ideally i just want to show all the catagories the post is in but ONLY the other posts in the catagory it was selected…hope that makes sense!
<?php global $post; $categories = get_the_category();foreach ($categories as $category) : ?>
<h2>» <?php echo $category->name; ?></h2>
<p><?php _e('Category: ', 'blank'); ?><?php the_category(', ') ?></p>
<ul class="rightcol">
<?php $posts = get_posts('numberposts=20&category='. $category->term_id);foreach($posts as $post) :?>
<li><span class="threecolsmall"><?php the_time('j M y') ?></span><br />
<a href='<?php the_permalink() ?>'><?php the_title(); ?></a></li>
<?php endforeach; ?>
<!--<li><strong><a href="<?php echo get_category_link($category->term_id);?>" title="View all posts filed under <?php echo $category->name; ?>">ARCHIVE FOR '<?php echo $category->name; ?>' CATEGORY »</a></strong></li>-->
<?php endforeach; ?>
</ul>