Title: This plugin has to exist&#8230;.
Last modified: August 19, 2016

---

# This plugin has to exist….

 *  [Clifton Griffin](https://wordpress.org/support/users/clifgriffin/)
 * (@clifgriffin)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/this-plugin-has-to-exist/)
 * I’m setting up a wordpress blog for a guy who does motorcycle repairs. He is 
   posting pictures of projects he is working on in a category called “Projects”.
 * I would like to display a list of “Recent Projects” on the main blog page at 
   the top before the first post.
 * This would not be unlike “recent news” and things other sites use. I have been
   searching for a few days for a plugin that can do this, but to now avail.
 * Does anyone out there use a plugin like this or have any recommendations how 
   I can accomplish this? I’m a fairly capable programmer so I’m not against doing
   something manual, but I feel confident that I’m not the first person to need 
   this. I’d prefer not to reinvent the wheel!
 * Much love,
    Clifton

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Dgold](https://wordpress.org/support/users/dgold/)
 * (@dgold)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/this-plugin-has-to-exist/#post-844025)
 * Sounds to me like what you want is….
 * Display 10 Recent Posts from the “Projects” category.
 * You can do this without a Plugin using some special code in The Loop (which is
   located in your Theme files).
 * Something like this from the Codex, (read about it under Multiple Loops),
 * [http://codex.wordpress.org/The_Loop](http://codex.wordpress.org/The_Loop)
 *     ```
       <?php query_posts('category_name=PROJECTS&showposts=10'); ?>
   
         <?php while (have_posts()) : the_post(); ?>
           <!-- Do special_cat stuff like put the title and excerpt here... -->
         <?php endwhile;?>
       ```
   
 * hope this helps ya get started
 * there might be a plugin that handles it too
 *  Thread Starter [Clifton Griffin](https://wordpress.org/support/users/clifgriffin/)
 * (@clifgriffin)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/this-plugin-has-to-exist/#post-844141)
 * Thanks for the info. I will probably end up using it.
 * Anyone else out there seen anything that might be useful?
 *  Thread Starter [Clifton Griffin](https://wordpress.org/support/users/clifgriffin/)
 * (@clifgriffin)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/this-plugin-has-to-exist/#post-844181)
 * Here is my finaly code. It ended up being fairly simple. Thank you for pointing
   me in the right direction.
 * This code displays the 5 most recent posts from category 3 in a div at the top
   of the home page:
 *     ```
       <?php $count = 1 ?>
       <?php if ( is_home() ) { ?>
       <div style="width:inherit; background-color:#FFFFD9; border:dotted; border-color:#666; border-width:thin;">
       <h3 style="margin-left:5px;">Recent Projects</h3>
       <ul>
       <?php while (have_posts()) : the_post(); ?>
       <?php if ( in_category('3') && $count <= 5 ) { ?>
       <?php $count++; ?>
       <li style="margin-bottom:0px;"><h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5></li>
       <?php } ?>
       <?php endwhile;?>
       </ul>
       </div>
       <?php } ?>
       <?php rewind_posts(); ?>
       ```
   
 *  [Dgold](https://wordpress.org/support/users/dgold/)
 * (@dgold)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/this-plugin-has-to-exist/#post-844182)
 * Good job! Glad you got it working.
 * That little line with “rewind_posts” is pretty important, eh!
 *  Thread Starter [Clifton Griffin](https://wordpress.org/support/users/clifgriffin/)
 * (@clifgriffin)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/this-plugin-has-to-exist/#post-844262)
 * Well, I finally got around to making it into a plugin:
 * [http://clifgriffin.com/index.php/2008/10/05/featured-category/](http://clifgriffin.com/index.php/2008/10/05/featured-category/)
 * Hopefully this will be helpful to others trying to do this.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘This plugin has to exist….’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)

 * 5 replies
 * 2 participants
 * Last reply from: [Clifton Griffin](https://wordpress.org/support/users/clifgriffin/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/this-plugin-has-to-exist/#post-844262)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
