function videoReviewShortcode() { $args = array('post_type' => 'video-reviews', 'post_status' => 'publish', 'posts_per_page' => -1); $my_query = null; $my_query = new WP_Query($args); $tpl = new Tpl(); return $tpl->video_reviews($my_query); }