i had sort out this with function get_post_gallery
find the answer
if ( ! function_exists( 'flexi_gallery_slideshow' ) ) :
/**
* Display an optional post read more link
*
*/
function flexi_gallery_slideshow( ) {
echo '<ul class="bxslider">';
if ( get_post_gallery() ) :
$gallery = get_post_gallery( get_the_ID(), false );
/* Loop through all the image and output them one by one */
foreach( $gallery['src'] as $src ) : ?>
<li> <img src="https://wordpress.stackexchange.com/questions/227935/<?php echo $src; ?>" class="gallery-slider" alt="Gallery image" /> </li>
<?php
endforeach;
endif;
echo '</ul>' ;
}
endif;
Related Posts:
- Hide Gallery from the_conent
- Custom wordpress gallery option
- Gallery Inside One Post
- How do i add class=”fancybox” to the default gallery?
- Modifying the media-template.php file, the right way?
- Responsive Images
- how do i create a downloadable gallery with image descriptions?
- Set default link type to “file” for image galleries
- Images Missing from built in WP Gallery
- Add size in Gallery Settings in Media Library
- Post photo galleries [closed]
- Media gallery – inserting full size images without link
- Get image captions for images on gallery post format metabox
- Getting the image title/alt attribute from the gallery shortcode
- Add a checkbox in Media Upload window
- Changing Gallery images size?
- remove featured image from gallery woocommerce [closed]
- Add data attribute to a gallery link?
- Display all albums in nggallery on a page [closed]
- What is a good way to implement photo galleries on WordPress?
- How to determine if a post has attached images?
- How can I make wp default gallery responsive?
- How to get clean code for a gallery?
- show other images from same gallery
- how do i embed the pdf gallery in wordpress post
- Attach custom gallery to a page
- How To Put Multiple Image Galleries In A Single Post?
- Add new images to top of existing gallery not bottom
- WordPress gallery not sorting the images if I change the order of image ids
- GalleryView binding for WP Gallery, without NextGen
- Gutenberg MediaUpload component with default gallery functionality?
- WordPress show Gallery Title and Captions
- Add Download Button in prettyPhoto Plugin
- Displaying a combination of Galleries
- Can I nest a element within tags from default wordpress?
- Text lost under image after WordPress 5.0 upgrade
- Strange issue with gallery when displays 3 columns
- Extending Media Gallery – Retrieving values from short code
- How to run custom JavaScript code on gallery attachment image selection
- Is it possible to setup a gallery in the backend without including it in the content?
- Custom links or pages from Media Gallery
- My “Description” in gallery doesn’t accept formatting/html
- Is it possible to set JJ NextGen JQuery Carousel dynamic ids? [closed]
- How to show private flickr group on a WordPress site?
- Lightbox Effect Not Working
- Gallery Shortcode – only show first x thumbnails
- Image Gallery links to medium image instead of FULL size image
- Gallery backend only
- How to make gallery images responsive?
- How to have Tiled Galleries like in WordPress.com?
- Optimizing wp_get_attachment_image_src
- How to make universal gallery and improve admin side of managing galleries?
- Where is image gallery information saved?
- Making a [gallery] in a loop with attachment IDs?
- Display number of latest images from wordpress gallery in your homepage
- How can I attach a gallery to a post with a short code?
- How to dynamically insert in the image caption?
- Remove curved edges from thumbnails in gallery (elementor)
- Change default values of Gallery Block settings
- display post format text in loop
- WordPress WebSite is jumps while scrolling bottom [closed]
- Add image to gallery with slug
- How to retrieve media images urls in different sizes?
- WP Gallery showing captions twice
- Display Gallery Images from Custom Post Type
- Image thumbnails slider
- How can we create a wallpapers gallery with different resolution?
- gallery shortcode exclude not working
- Slideshow with thumbnails
- Ipad app: Need uploaded images to go into “Gallery” as well as “Media Library”
- A proper gallery in wordpress?
- Can I create a NextGen gallery from a WordPress gallery
- is there a jcarousel plugin for wordpress that loads dynamic images
- Looking for WordPress Slideshow Gallery Plugin [closed]
- Making the caption & click through link more visible on a gallery photo
- How to automatic specify images in content added to gallery
- Is it possible to make a user-specific gallery?
- how do i can make a preview of image gallery
- Extract Gallery picture info from empty gallery shortcode
- How to create different gallery-types and let the editor choose between them?
- Page WYSWIG only allowing slides
- Gallery attachment not found
- Responsive WordPress Gallery
- How can I bulk import into galleries?
- How to refresh the Gallery images?
- Standard WordPress gallery – Possible to open image in page?
- next_image_link Displaying All Images Attac
- the_content() won’t load galleries on homepage
- Get raw image detail from post gallery?
- How to display images that was uploaded in the media gallery and not by the current post?
- How to show the image caption on custom post type …?
- Multiple Galleries in WordPress 3.3.1
- Get post image gallery link
- How to create a custom image gallery in the footer?
- Seeking recommendations on Gallery plugins , specifically captioning thumbnails [closed]
- Looking to implement a scrolling gallery in my theme
- Hover/Zoom on Lightbox gallery
- Need help making Gallery slideshow with lightbox work correctly
- How to upload multiple images per single post and display them in a gallery?
- how to add this type of gallary photo number counter?