esc_html__("Service Posts", 'taskereasy'), "base" => "taskereasy_services_post", 'icon' => get_template_directory_uri() . '/assets/images/favicon-icon/shortcode-icon.png', "class" => "", "description" => esc_html__("Add taskereasy services post type", 'taskereasy'), "category" => esc_html__('Taskereasy Shortcodes', 'taskereasy'), "params" => array( array( "type" => "dropdown", "heading" => esc_html__("Post Columns", 'taskereasy'), "param_name" => "post_coloumns", "value" => array('Three columns' => '3', 'Four Column' => '4'), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS', 'taskereasy' ), 'param_name' => 'custom_design', 'group' => esc_html__( 'Design options', 'taskereasy' ), ) ) )); add_shortcode( 'taskereasy_services_post', function($atts, $content = null) { extract(shortcode_atts(array( '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' => 'services', 'orderby' => 'date', 'posts_per_page' => -1, ); $the_query = new WP_Query( $args ); $output .= '
'.taskereasy_custom_excerpt_length(20).'
'.esc_html__('More info', 'taskereasy') .''.esc_html__( 'Sorry, no posts matched your criteria.', 'taskereasy' ) .'
'; endif; $output .= '