diff --git a/includes/widgets/widget-wetory-support-favourite-posts.php b/includes/widgets/widget-wetory-support-favourite-posts.php index ad557c3..efe1be5 100644 --- a/includes/widgets/widget-wetory-support-favourite-posts.php +++ b/includes/widgets/widget-wetory-support-favourite-posts.php @@ -87,9 +87,10 @@ public function widget($args, $instance) { $list_style = !empty($instance['list_style']) ? $instance['list_style'] : 'ol'; $show_date = !empty($instance['show_date']) ? (bool) $instance['show_date'] : false; $show_thumb = !empty($instance['show_thumb']) ? (bool) $instance['show_thumb'] : false; - + // query posts $r = new WP_Query(array( + 'post_type' => 'any', 'post__in' => $selected_posts, 'no_found_rows' => true, 'post_status' => 'publish', @@ -301,7 +302,7 @@ public function form($instance) { echo '

'; ?> -