Title: Using &#8220;getRecentPosts&#8221; for a particular category
Last modified: August 18, 2016

---

# Using “getRecentPosts” for a particular category

 *  [steveeq1](https://wordpress.org/support/users/steveeq1/)
 * (@steveeq1)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/using-getrecentposts-for-a-particular-category/)
 * Is there a way to get “getRecentPosts” for a particular category? Right now, 
   it seems to get ALL postings, despite what I put in the “blogid”.

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

 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/using-getrecentposts-for-a-particular-category/#post-251046)
 * The following tutorial may work as well
    [Template Tags/get_posts](http://codex.wordpress.org/Template_Tags/get_posts)
 *  [lazurus](https://wordpress.org/support/users/lazurus/)
 * (@lazurus)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/using-getrecentposts-for-a-particular-category/#post-251103)
 * Create a new page.
 * [http://www.nosq.com/2004/10/runphp-wordpress-plugin/](http://www.nosq.com/2004/10/runphp-wordpress-plugin/)
   
   ^— Install the runphp plugin.
 * Set your page to eval the code.
 * [http://mtdewvirus.com/code/wordpress-plugins/](http://mtdewvirus.com/code/wordpress-plugins/)
   
   ^— Use the “Recent Posts” plugin.
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/using-getrecentposts-for-a-particular-category/#post-251107)
 * You could also just create a custom Page template that has the code inside it.
   A lot better IMO than running the “runphp” plugin.

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

The topic ‘Using “getRecentPosts” for a particular category’ is closed to new replies.

## Tags

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

 * 3 replies
 * 4 participants
 * Last reply from: [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/using-getrecentposts-for-a-particular-category/#post-251107)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
