Strategy11 / display-widgets

http://wordpress.org/extend/plugins/display-widgets/
21 stars 22 forks source link

$show variable fails when no results in wp_query #29

Closed DB-Alex closed 8 years ago

DB-Alex commented 8 years ago

The $type variable is set to false when there are no results for a wp_query on the archive page. This way we have a fallback to get the correct post_type even when no results are present.