I am fairly new to WordPress, and I would like to have a list of the most recent posts in a certain category appear in a right-hand panel (I can do this with all posts, but not specific categories)

I am using the Twenty Ten theme, on wordpress.com. I have found the following code, but unsure if or where this can be added:

<?php $recent = new WP_Query("cat=10&showposts=5"); while($recent->have_posts()) : $recent->the_post();?>
    <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
    <?php endwhile; ?>

2 Answers 2


The fastest way, a plugin:


  • The installation instructions say "Upload it to the plugins folder of your blog." I am not sure if this is possible on the free version? Commented May 19, 2011 at 6:13
  • Ok, found out I cannot do this. I may have to use a custom server. Commented May 19, 2011 at 6:15
  • oh, you're using WordPress.com. Sorry. I've never customized a WP.com blog.
    – MZAweb
    Commented May 19, 2011 at 16:11
  • I have got a wordpress.org server, and I installed the plugin but it only shows "Uncategorized" in the categories dropdown.. Commented May 22, 2011 at 4:44

You are using wordpress.com. You cannot modify your Theme template files, or upload Plugins. You are limited to the Plugins available via Dashboard -> Plugins.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.