Title: &#8220;Recent Posts&#8221; widget hack
Last modified: August 19, 2016

---

# “Recent Posts” widget hack

 *  [railcrew](https://wordpress.org/support/users/railcrew/)
 * (@railcrew)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/recent-posts-widget-hack/)
 * I’m using the wp default widget for “Recent Posts”. how do I edit it to show 
   the second post in line first (the last one just before the newest post) instead
   of the newest most recent post first? I’m pretty sure it can be done, I’ve seen
   it in Theme settings before I think…
 * I’m using “SilverLight”.01 theme

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

 *  Thread Starter [railcrew](https://wordpress.org/support/users/railcrew/)
 * (@railcrew)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/recent-posts-widget-hack/#post-1403222)
 * I noticed the Theme rsidebar template has it set as I want (numberposts=10&offset
   =1) (I think thats the right code?) but I’m not using the theme recent posts,
   I’m using the WP widget recent posts. I’ve looked all over my templates and can’t
   find where to edit it as I want it.
 *  Thread Starter [railcrew](https://wordpress.org/support/users/railcrew/)
 * (@railcrew)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/recent-posts-widget-hack/#post-1403259)
 * Ok. not a big code genius here, but like I said in the second post, I figured
   how My theme deals with recent posts in the sidebar
    (rsidebar.php) <?php $myposts
   = get_posts(‘numberposts=10&offset=1’); foreach($myposts as $post) : ?> and I
   know that when you add widgets (twitter,etc…) to the sidebar, it overrides the
   sidebar code and you must then add each widget, (recent, archive, etc…) from 
   available widgets. The widget options does allow you to state how many recent
   posts you would like to display, but doesn’t allow you to remove the most recent(
   offset=1) I’ve looked every where I can’t find where to hack it.

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

The topic ‘“Recent Posts” widget hack’ is closed to new replies.

 * 2 replies
 * 1 participant
 * Last reply from: [railcrew](https://wordpress.org/support/users/railcrew/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/recent-posts-widget-hack/#post-1403259)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
