function NewCoupons($num=5){ global $wpdb; $STRING = ""; $query = array ( 'posts_type' => 'post', 'orderby' => 'date', 'order'=> 'DESC' ); $posts = new WP_Query($query); foreach($posts as $post){ $STRING .="