GalleryView binding for WP Gallery, without NextGen

I’m afraid there’s no plugin, but using jQuery GalleryView is not that hard actually. Download Download jQuery GalleryView and put the css and js folders inside a new folder galleryview in your theme’s folder. Setting Up the List jQuery GalleryView needs an unordered list so we have to alter the gallery output: add_filter( ‘post_gallery’, ‘my_post_gallery’, … Read more

WordPress grab first image from gallery

I had the same issue and was previously using get_children() to retrieve the top 4 images from a gallery for a given page. Here’s the solution I came up with: // helper function to return first regex match function get_match( $regex, $content ) { preg_match($regex, $content, $matches); return $matches[1]; } // Extract the shortcode arguments … Read more

Add new images to top of existing gallery not bottom

Here’s a version of the linked solution that overrides galleryAddToolbar to have an extra button (insertTop) to do what you want (in your “functions.php”): add_filter( ‘media_view_strings’, function ( $strings, $post ) { $strings[‘addToGallery’] = __( ‘Add to end of gallery’ ); $strings[‘addToGalleryTop’] = __( ‘Add to start of gallery’ ); return $strings; }, 10, 2 … Read more

How To Put Multiple Image Galleries In A Single Post?

No, because galleries are defined as being all the images attached to a single Post. Therefore one Post cannot have multiple galleries because that goes against the definition of what a “gallery” is. Your method #3 will be as close as you can get, however you don’t have to use Pages specifically. You can use … Read more

Gallery Only Displaying One Thumbnail

Try this and verify that the attachments come back correctly when queried directly: // helper function to return first regex match function get_match( $regex, $content ) { preg_match($regex, $content, $matches); return $matches[1]; } // Extract the shortcode arguments from the $post $shortcode_args = shortcode_parse_atts(get_match(‘/\[gallery\s(.*)\]/isU’, $post->post_content)); // get the attachments specified in the “ids” shortcode argument … Read more

Attach custom gallery to a page

You can upload images in media of each page by using INSER GALLERY button.You can Upload multiple images & galleries also. You can get all images of each page by using below code. $images = get_posts( array( ‘numberposts’ => -1, ‘post_parent’ => $post->ID, ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’, … Read more

how do i embed the pdf gallery in wordpress post

You can use the Custom URL field, to modify the attachment link for each one of your gallery images: where this is supported by the following plugin: <?php /** * Plugin Name: Custom Attachments Links * Description: Adds a new media field, to override the default attachment links. * Plugin URI: http://wordpress.stackexchange.com/a/176668/26350 * Plugin Author: … Read more