Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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:

<ul>
<?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; ?>
</ul>
share|improve this question

2 Answers 2

up vote 1 down vote accepted

The fastest way, a plugin:

http://wordpress.org/extend/plugins/category-posts/

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

 
discard

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.