I found a solution:
The following works perfectly:
<?php
global $post;
$categories = get_the_category();
$category = $categories[0];
$cat_ID = $category->cat_ID;
$myposts = get_posts("numberposts=20&category=$cat_ID");
?>
<?php foreach($myposts as $post) :?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php endforeach; ?>
Thanks Simon, unfortunately that didn’t work. It stopped outputting the list of posts.
This is all running outside of the loop – and in place of the loop.
Any other ideas? Your help is appreciated.
Tony
I’m having the same problem. TinyMCE doesn’t have the styling buttons in the tool bar. I’ve tried fix that kristanlh suggested, but it still doesn’t work.