Retrieving all the image URLs from a gallery in a wordpress post

Adding a gallery to wordpress post is being much easier, but sometimes you may find it helpful if you can retrieve all the URLs of images inserted as part of the gallery in a post. Basically we’ll use get_post_gallery to get the first gallery inserted into the post, and then use wp_get_attachment_url to get the … Continue reading “Retrieving all the image URLs from a gallery in a wordpress post”

Change WordPress default gallery output

Gallery feature made it easy to add one or more images into a post with a simple shortcode. While we may occasionally want to change the gallery output to better meet our requirements, like to showcase the images using a third party js plugin. There’s a filter to post_gallery which you can use to customize … Continue reading “Change WordPress default gallery output”