cat_ID);
}
$args = array(
'orderby' => 'date',
'order' => 'DESC',
'post_type' => 'post',
'numberposts' => 8,
'post__not_in' => array($post->ID),
'category__in' => $cat_ID
); // post__not_in will exclude the post we are displaying
$cat_posts = get_posts($args);
$out='';
foreach($cat_posts as $cat_post) {
$out .= '
$out .= ''.wptexturize($cat_post->post_title).'
';
}
$out = '
- ' . $out . '
';
echo $out;
?>
When you have clicked into a posts page this will find the category of that post and show others of that category.