''), $atts ));
$gallery = new WP_Query( array( 'post_type' => 'gallery', 'post_status' => 'publish','posts_per_page'=>$show) );
echo '
';
while ( $gallery->have_posts() ) : $gallery->the_post();
echo '
';
if (has_post_thumbnail()):
the_post_thumbnail('full', array('class' => 'img-responsive center-block'));
endif;
echo '
';
endwhile; wp_reset_query();
echo '
';
}
//2 ******************Gallery List Style 2 Shortcode ***********************//
function beevent_gallery_style2($atts){
extract( shortcode_atts(array('show' =>''), $atts ));
$gallery = new WP_Query( array( 'post_type' => 'gallery', 'post_status' => 'publish','posts_per_page'=>$show) );
echo '';
while ($gallery->have_posts() ) : $gallery->the_post();
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'large' ); ?>
'img-responsive center-block'));
echo '';
echo get_the_title();
echo '
'; ?>
';
}
//3 ******************Gallery List Style 3 Shortcode ***********************//
function beevent_gallery_style3($atts){
extract( shortcode_atts(array('show' =>''), $atts ));
$gallery = new WP_Query( array( 'post_type' => 'gallery', 'post_status' => 'publish','posts_per_page'=>$show) );?>
'; ?>
have_posts() ) : $gallery->the_post(); ?>
ID), 'large' );
echo '
';
}