Title: Plugin Not Skipping Most Recent Post
Last modified: October 16, 2016

---

# Plugin Not Skipping Most Recent Post

 *  Resolved [musicmovielover10](https://wordpress.org/support/users/musicmovielover10/)
 * (@musicmovielover10)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-skipping-most-recent-post/)
 * Hello,
 * First off great plugin and thank you.
 * I’m having an issue with the first post in the category selected showing even
   though I have “Do Not List The Current Post” checked in the widget options.
 * I need the widget to offset posts by 1, and I am assuming the options as I have
   them selected are correct, but it is not working.
 * Can you please help?
 * Thank you

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

 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-skipping-most-recent-post/#post-8307910)
 * “First post” and “current post” are different. So that option would not fit your
   needs, I think.
 * I can tell you a PHP code for the offset parameter. Can you implement it?
 *  Thread Starter [musicmovielover10](https://wordpress.org/support/users/musicmovielover10/)
 * (@musicmovielover10)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-skipping-most-recent-post/#post-8307918)
 * Martin understood and yes I could absolutely implement it that would be great!
 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-skipping-most-recent-post/#post-8307956)
 * Please set this code at the end of the file ‘functions.php’ of your theme:
 *     ```
       function rpwwt_add_offset ( $query_args ) {
       	$query_args[ 'offset' ] = 1;
       	return $query_args;
       }
       add_filter( 'rpwwt_widget_posts_args', 'rpwwt_add_offset' );
       ```
   
 *  Thread Starter [musicmovielover10](https://wordpress.org/support/users/musicmovielover10/)
 * (@musicmovielover10)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-skipping-most-recent-post/#post-8308758)
 * Perfect…all works…thanks so much Martin!
 *  Thread Starter [musicmovielover10](https://wordpress.org/support/users/musicmovielover10/)
 * (@musicmovielover10)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-skipping-most-recent-post/#post-8308855)
 * Eek, actually, it works but there is a problem. When I log out my admin login
   page does not show and says there is an error.
 * It says:
 * Warning: Cannot modify header information – headers already sent by…..
 * Why would this be?
    -  This reply was modified 9 years, 7 months ago by [musicmovielover10](https://wordpress.org/support/users/musicmovielover10/).
 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-skipping-most-recent-post/#post-8312624)
 * There could be several reasons, so I have to guess. The code is not the reason
   as you wrote it woould work. Edited the PHP file can be a reason if the file 
   ends with ‘?>’ followed by characters like space, newline, tab. In that case 
   removing ‘?>’ at the end of the file can help.

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

The topic ‘Plugin Not Skipping Most Recent Post’ is closed to new replies.

 * ![](https://ps.w.org/recent-posts-widget-with-thumbnails/assets/icon-256x256.
   png?rev=2478511)
 * [Recent Posts Widget With Thumbnails](https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/reviews/)

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-skipping-most-recent-post/#post-8312624)
 * Status: resolved