'.get_the_title().'
'.taskereasy_custom_excerpt_length(10).'
esc_html__("Blog Posts", 'taskereasy'), "base" => "taskereasy_blog_post", 'icon' => get_template_directory_uri() . '/assets/images/favicon-icon/shortcode-icon.png', "class" => "", "description" => esc_html__("Add taskereasy blog post type", 'taskereasy'), "category" => esc_html__('Taskereasy Shortcodes', 'taskereasy'), "params" => array( array( "type" => "dropdown", "heading" => esc_html__("Style", 'taskereasy'), "param_name" => "style", "value" => array('Style 1' => 'style_1', 'Style 2' => 'style_2'), ), array( "type" => "dropdown", "heading" => esc_html__("Post Columns", 'taskereasy'), "param_name" => "post_coloumns", "value" => array('Three columns' => '3', 'Four columns' => '4'), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS', 'taskereasy' ), 'param_name' => 'custom_design', 'group' => esc_html__( 'Design options', 'taskereasy' ), ) ) )); add_shortcode( 'taskereasy_blog_post', function($atts, $content = null) { extract(shortcode_atts(array( 'style' => 'style_1', 'post_coloumns' => '3', 'custom_design' => '', ), $atts)); $custom_design = vc_shortcode_custom_css_class( $custom_design, ' ' ); $postcoloumns = html_entity_decode(vc_value_from_safe($post_coloumns, true)); $output = ''; $args = array( 'post_type' => 'post', 'orderby' => 'date', 'order' => 'desc', 'posts_per_page' => $postcoloumns, ); $the_query = new WP_Query( $args ); $output .= '
'.taskereasy_custom_excerpt_length(10).'
'.esc_html__( 'Sorry, no posts matched your criteria.', 'taskereasy' ) .'
'; endif; $output .= '