Hi apljdi – your code works great, but only in the HTML editor. Is it possible to change it to work for the Visual editor (i.e., the wysiwyg editor)? I’m on WordPress 2.9.
Thanks
Thanks mdskinner – 7 months later!
I’m having the same problem – trying to call recent posts on a single post page imports all of their comments as well. Really having a tough time figuring this one out!
Here is the code responsible – in my single.php
<ul>
<?php global $post; $myposts = get_posts('numberposts=5&offset=1');
foreach($myposts as $post) :
?>
<?php if (in_category('3')) continue; ?>
<li><lid><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></lid></li>
<?php endforeach; ?>
</ul>
I really hope someone can help!