Title: PHP Include or get &#8220;RecentPosts&#8221;
Last modified: August 19, 2016

---

# PHP Include or get “RecentPosts”

 *  [wesburke](https://wordpress.org/support/users/wesburke/)
 * (@wesburke)
 * [18 years ago](https://wordpress.org/support/topic/php-include-or-get-recentposts/)
 * Hello,
 * I am new to modifying WordPress, but I am fumbling through a bit of it. I have
   a custom index page that I would like to include say 10 of the most recent posts
   from wordpress. Is there a snippet that I may use or a page somewhere that defines
   these items to insert into custom pages?
 * Appreciate the help
 * W

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

 *  Thread Starter [wesburke](https://wordpress.org/support/users/wesburke/)
 * (@wesburke)
 * [18 years ago](https://wordpress.org/support/topic/php-include-or-get-recentposts/#post-787201)
 * Hey guys,
 * Am I off my horse on the above, or are there any docs I may read up on so I don’t
   have to bother the community?
 * w
 *  [Jess](https://wordpress.org/support/users/jessn/)
 * (@jessn)
 * [18 years ago](https://wordpress.org/support/topic/php-include-or-get-recentposts/#post-787202)
 * Here’s some plugins I found that might work. Let me know how it goes, I’m thinking
   about doing the same thing.
 * [http://rmarsh.com/plugins/](http://rmarsh.com/plugins/)
    [http://wordpress.org/extend/plugins/recent-posts/](http://wordpress.org/extend/plugins/recent-posts/)
 *  [Jess](https://wordpress.org/support/users/jessn/)
 * (@jessn)
 * [18 years ago](https://wordpress.org/support/topic/php-include-or-get-recentposts/#post-787213)
 * Ah, I found this too:
    [http://stylizedweb.com/2008/06/13/useful-wordpress-tricks/](http://stylizedweb.com/2008/06/13/useful-wordpress-tricks/)
 * <?query_posts(‘showposts=10’);?>
 *  Thread Starter [wesburke](https://wordpress.org/support/users/wesburke/)
 * (@wesburke)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/php-include-or-get-recentposts/#post-787346)
 * Awesome thank you – I will give these a shot and let you know.
 * Cheers,
 * W
 *  Thread Starter [wesburke](https://wordpress.org/support/users/wesburke/)
 * (@wesburke)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/php-include-or-get-recentposts/#post-787347)
 * This one worked out great, and i was able to style it with CSS pretty easy… thank
   you for the response!
 *  Thread Starter [wesburke](https://wordpress.org/support/users/wesburke/)
 * (@wesburke)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/php-include-or-get-recentposts/#post-787348)
 * [http://wordpress.org/extend/plugins/recent-posts/](http://wordpress.org/extend/plugins/recent-posts/)

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

The topic ‘PHP Include or get “RecentPosts”’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [wesburke](https://wordpress.org/support/users/wesburke/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/php-include-or-get-recentposts/#post-787348)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
