Title: Empty posts
Last modified: August 30, 2016

---

# Empty posts

 *  Resolved [alpinisto](https://wordpress.org/support/users/alpinisto/)
 * (@alpinisto)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/empty-posts/)
 * Suddenly the Category Posts Widget is returning empty inside the
    - . The category it is looking for has 390 posts in it, the title link shows
      an archive page full of posts, they are not custom post types. It worked fine
      yesterday, I don’t think I changed anything that would mess this up. I can’t
      see anything wrong in the code for the widget, and can’t figure out why everything
      inside the while loop is empty.
 * I have changed category, changed it back, dropped another instance of the widget
   on, nothing works.
 * [https://wordpress.org/plugins/category-posts/](https://wordpress.org/plugins/category-posts/)

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

 *  Plugin Author [Mrinal Roy](https://wordpress.org/support/users/mkrdip/)
 * (@mkrdip)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/empty-posts/#post-6379153)
 * Hi,
 * Sorry for the late response. We’ve updated it to 4.1.0. Can you’ve a look with
   new version? The issue you faced could be from your hosting. Did you asked them
   about it?
 *  Thread Starter [alpinisto](https://wordpress.org/support/users/alpinisto/)
 * (@alpinisto)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/empty-posts/#post-6379179)
 * Hi, thanks for your note. I updated the plugin, but still not luck. I have looked
   into the actual Widget plugin code and can’t see anything wrong in there, or 
   why the WP_Query would not populate. If I got to the actual category that’s supposed
   to show up there, it is fine (the archive page).
 *  Plugin Author [Mrinal Roy](https://wordpress.org/support/users/mkrdip/)
 * (@mkrdip)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/empty-posts/#post-6379180)
 * Thanks for the update.
 * Any other plugin has conflict? Did you tried deactivating other & checking for
   the issue?
 *  Thread Starter [alpinisto](https://wordpress.org/support/users/alpinisto/)
 * (@alpinisto)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/empty-posts/#post-6379181)
 * Mrinal- I figured it out. There was a posts_where filter applied to a loop earlier
   on the page that was filtering out for upcoming events, and affected all loops
   after that (and since there were no ‘upcoming’ posts in this other category it
   was empty). I added a remove_filter for the same posts_where just after that 
   one loop and it restored the category posts in the footer.
 * Thanks for your help, sorry to bother you with this clearly my oversight.
 *  Plugin Author [Mrinal Roy](https://wordpress.org/support/users/mkrdip/)
 * (@mkrdip)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/empty-posts/#post-6379182)
 * No problem Alpinisto. Glad to know that you figured it out yourself.
 * If you’ve any suggestion regarding this plugin, you can submit it here on [Category Posts Widget Github repo](https://github.com/mkrdip/category-posts-widget/)(
   If possible with pull requests).
 * For other issues you can knock me via any social link on my [WordPress.org](https://wordpress.org/support/profile/mkrdip)
   profile.
 * Have a nice day, Cheers!

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

The topic ‘Empty posts’ is closed to new replies.

 * ![](https://ps.w.org/category-posts/assets/icon-256x256.png?rev=1419008)
 * [Category Posts Widget](https://wordpress.org/plugins/category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-posts/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Mrinal Roy](https://wordpress.org/support/users/mkrdip/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/empty-posts/#post-6379182)
 * Status: resolved