Possible to add same caption to all photos in a gallery?

Gallery with the same caption to all images: Here are two different ways to achieve this dynamically, without editing the caption for each image in the gallery. If we use the custom attribute same_caption in our gallery shortcode: then we can get the same caption for that gallery. Before: After: This is independently supported by … Read more

Media gallery – inserting full size images without link

UPDATE I’ve just submitted a core patch to add link=”none” support to the shortcode. ORIGINAL ANSWER You don’t need to hack core to do what you want to do; just use the appropriate shortcode parameters, e.g.: If you want to change the defaults, then use the post_gallery filter: function mytheme_gallery_shortcode_defaults( $output, $attr ) { global … Read more

Proper Way to Remove Thumbnail Links In Gallery

Instead of using 2 separate functions to grab the attachment you can use the same function, and then add the URL in separately using wp_get_attachment_url, making the logic much clearer, and reducing the amount of work needed: e.g. $image = wp_get_attachment_image( $id, $size, false ); // if it’s set to not show the image link … Read more

Define size for `get_post_gallery_images`, they seem to have been resized to 150×150

If you want get_post_gallery_images to give you full size images, you can use the following: // Use full size gallery images for the next gallery shortcode: add_filter( ‘shortcode_atts_gallery’, ‘wpse_141896_shortcode_atts_gallery’ ); // Your code: $gallery = get_post_gallery_images( $post ); foreach ($gallery as $img) { ?> <li><img src=”https://wordpress.stackexchange.com/questions/141896/<?php echo $img; ?>” /></li> <?php } where /** * … Read more

Post photo galleries [closed]

The site you linked to seems to do this by making one image the post thumbnail (Featured image in the admin screen). So you attach multiple images to your post, and then choose one of them as the featured image. You then modify your theme to show only the post thumbnail and no text in … Read more

Add size in Gallery Settings in Media Library

first +1 for the first commenter . NEVER CHANGE CORE FILES. this function will do the trick for your media upload : function dl_custom_image_sizes_add_settings($sizes) { unset( $sizes[‘thumbnail’]); //comment to remove size if needed //unset( $sizes[‘medium’]);// uncomment to remove size if needed //unset( $sizes[‘large’]);// uncomment to restore size if needed unset( $sizes[‘full’] ); // comment to … Read more

Images Missing from built in WP Gallery

You have a limit inside an script and you should change some values to adapt your needs: jQuery…. //user settings var thumbsPerPage = 15; var maxPaginatedLinks = 200; var hideEffect = “drop”; var showEffect = “drop”; var effectSpeed = “slow”; var count = 1; //handles multiple galleries on page var galleryCount = $( “[id^=gallery-]” ).each( … Read more