Title: &quot;Sorry no data&quot; fallback
Last modified: August 20, 2016

---

# "Sorry no data" fallback

 *  Resolved [andyfriel](https://wordpress.org/support/users/andyfriel/)
 * (@andyfriel)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/sorry-no-data-fallback/)
 * Hey,
 * Is there anyway to detect if there are no posts being returned? For context, 
   I’m using the plugin to display the daily most popular posts across various categories,
   but for some of the lesser used categories, it can take a while before posts 
   start to appear, so rather than display the “sorry no data” message, I’d instead
   like to then move to displaying weekly/monthly/etc in the meantime.
 * Is there anyway I can count the number of returned posts before they are output?
   Or a test for if any are returned?
 * Thanks!
 * Andy
 * [http://wordpress.org/extend/plugins/wordpress-popular-posts/](http://wordpress.org/extend/plugins/wordpress-popular-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/sorry-no-data-fallback/#post-3565615)
 * Hi there,
 * The plugin does check the amount of returned posts in order to display either
   the list of entries or the “Sorry, no data so far” message.
 * About your suggestion, I’m not entirely sure that other people would like that
   and it might even lead to confusion. You might wanna change the configuration
   to list posts by views instead.

Viewing 1 replies (of 1 total)

The topic ‘"Sorry no data" fallback’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/sorry-no-data-fallback/#post-3565615)
 * Status: resolved