WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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; ?>
share|improve this question
up vote 1 down vote accepted

The fastest way, a plugin:


share|improve this answer
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? – JavaNut13 May 19 '11 at 6:13
Ok, found out I cannot do this. I may have to use a custom server. – JavaNut13 May 19 '11 at 6:15
oh, you're using WordPress.com. Sorry. I've never customized a WP.com blog. – MZAweb May 19 '11 at 16:11
I have got a wordpress.org server, and I installed the plugin but it only shows "Uncategorized" in the categories dropdown.. – JavaNut13 May 22 '11 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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