/*********************SHORT CODE***********************/ function event_shortcode_display_post($attr, $content = null){ $args = array( 'category_name' => '', 'posts_per_page' => '3', 'order' => 'desc', 'post,' => 'post', 'post_status' =>'publish' ); $recent_posts = get_posts($args); if(isset($_GET['test'])){ /* echo "<pre>"; print_r($recent_posts);die; */ } $output = '<ul class="postslide">'; foreach ($recent_posts as $eventpost) : $cat=''; $categories=get_the_category($eventpost->ID); $thumbid=get_post_thumbnail_id($eventpost->ID); $url=wp_get_attachment_image_url($thumbid,'original'); $display_name = get_the_author_
Comments
Post a Comment