Title: Recent Posts widget Broken
Last modified: August 22, 2016

---

# Recent Posts widget Broken

 *  [cherylweb27](https://wordpress.org/support/users/cherylweb27/)
 * (@cherylweb27)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/recent-posts-widget-broken/)
 * I used this plugin to add the following action to my site:
 * >  add_filter(‘widget_posts_args’,’modify_widget’);
   > function modify_widget() {
   >  $r = array( ‘cat’ => ‘6’ ); return $r; }
 * I wanted to make the WP native Recent Posts widget populate only one category.
 * It didn’t work, so I removed the PHP code from the plugin. However, now the Recent
   Posts widget is broken (will not show up on frontend), and I can’t find the code
   in my functions.php to fix the issue.
 * (I tried removing & replacing the widget, deactivating the plugin, and searching
   the php…all to no avail.)
 * Anyone know what’s wrong? I have no idea even where to start looking. 🙁
 * Thanks for your help.
 * [https://wordpress.org/plugins/add-actions-and-filters/](https://wordpress.org/plugins/add-actions-and-filters/)

The topic ‘Recent Posts widget Broken’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/add-actions-and-filters_ffffff.svg)
 * [Add Shortcodes Actions And Filters](https://wordpress.org/plugins/add-actions-and-filters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-actions-and-filters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-actions-and-filters/)
 * [Active Topics](https://wordpress.org/support/plugin/add-actions-and-filters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-actions-and-filters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-actions-and-filters/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 0 replies
 * 1 participant
 * Last reply from: [cherylweb27](https://wordpress.org/support/users/cherylweb27/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/recent-posts-widget-broken/)
 * Status: not resolved