''), $atts)); $testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish','posts_per_page'=>$show) ); echo ''; } //2 ****************** Testimonial List Style 2 Shortcode ***********************// function beevent_Testimonial_Style2($atts){ extract(shortcode_atts(array('show' =>''), $atts)); $testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish','posts_per_page'=>$show) ); echo '
'; while ( $testimonial->have_posts() ) : $testimonial->the_post(); echo '
'; if (has_post_thumbnail()): echo '
'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '
'; endif; echo '
'; the_title(); echo '
'; $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true ); if (!empty( $destination)): echo ''.esc_html($destination).''; endif; echo '
'; the_excerpt(); echo '
'; endwhile; wp_reset_query(); echo '
'; } //2 ****************** Testimonial List Style 2 Shortcode ***********************// function beevent_Testimonial_Style3($atts){ extract(shortcode_atts(array('show' =>''), $atts)); $testimonial = new WP_Query( array( 'post_type' => 'testimonial', 'post_status' => 'publish','posts_per_page'=>$show) ); echo '
'; while ( $testimonial->have_posts() ) : $testimonial->the_post(); echo '
'; if (has_post_thumbnail()): echo '
'; the_post_thumbnail('beevent_small', array('class' => 'img-responsive center-block')); echo '
'; endif; echo '
'; the_title(); echo '
'; $destination = get_post_meta(get_the_ID(),'Be_tes_designation', true ); if (!empty( $destination)): echo ''.esc_html($destination).''; endif; echo '
'; the_excerpt(); echo '
'; endwhile; wp_reset_query(); echo '
'; }