Title: [Plugin: Custom Post Widget] Select newest post?
Last modified: August 20, 2016

---

# [Plugin: Custom Post Widget] Select newest post?

 *  Resolved [exileddelusion](https://wordpress.org/support/users/exileddelusion/)
 * (@exileddelusion)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-select-newest-post/)
 * This plugin is seriously a life saver! It works just great with my wordpress.
   I suppose I am just wondering if there is something in the code I could change
   to get it to do what I want- rather than selecting a specific block from the 
   drop-down, I’d like it to automatically display the newest post in the Content
   Blocks section. This seems like it would be possible, but I’m not quite sure 
   what needs to be changed to make it so?
 * For now I will just manually update the content block every time my site updates-
   but if I could get it to a state where it would be more automated, that’d be 
   amazing!
 * Regardless thanks so much for making this great plugin! It’s already a lifesaver
   as-is 🙂
 * [http://wordpress.org/extend/plugins/custom-post-widget/](http://wordpress.org/extend/plugins/custom-post-widget/)

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

 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-select-newest-post/#post-2308153)
 * Because this would mean radically changing the working of the plugin I don’t 
   think I can implement this change.
 * You can try replacing the post-widget.php file with this: [http://pastebin.com/RZLDy4Ki](http://pastebin.com/RZLDy4Ki)
 * Now the latest content block is always displayed as requested (note that this
   completely ignores the post you selected in the drop-down list on the widget 
   configuration page).
 *  Thread Starter [exileddelusion](https://wordpress.org/support/users/exileddelusion/)
 * (@exileddelusion)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-select-newest-post/#post-2308156)
 * I totally understand that being a lot of work! I wasn’t sure exactly how it was
   coded, so… but thank you! That will work just fine! I always will want the newest
   content block to show, so that’s no problem at all. Thanks so much for the fix!
   I really appreciate it 😀
 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-select-newest-post/#post-2308157)
 * I’m glad this solution works for you!
 * I would really appreciate it if you could rate my plugin 🙂 [http://wordpress.org/extend/plugins/custom-post-widget/](http://wordpress.org/extend/plugins/custom-post-widget/)

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

The topic ‘[Plugin: Custom Post Widget] Select newest post?’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-widget/assets/icon.svg?rev=2884166)
 * [Content Blocks (Custom Post Widget)](https://wordpress.org/plugins/custom-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-widget/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-select-newest-post/#post-2308157)
 * Status: resolved