Remove Captions from Custom Gallery function.php
if you can do it easy way ,so why not? you can use jquery to do it like: ( function( $ ) { function function_name() { $( ‘.gallery-caption’).css({display:’none’}); } function_name(); } )( jQuery );
if you can do it easy way ,so why not? you can use jquery to do it like: ( function( $ ) { function function_name() { $( ‘.gallery-caption’).css({display:’none’}); } function_name(); } )( jQuery );
The answer was to assign a count to each attachment: $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => $post->ID, ‘order_by’ => ‘menu_order’, ‘order’ => ‘DESC’ ); $attachments = get_posts( $args ); if ( $attachments ) { $count = 0; foreach ($attachments as $attachment) { $link = get_permalink($attachment->ID); $link = … Read more
I solved this by ripping out all the css for sectio 5.4 Galleries (anything under .galleries) and slapping in the code from the twenty ten theme. Needed a bit of tweaking, but they are now showing properly.
Figured it out. //Remove original Gallery function remove_the_first_gallery( $output, $attr ){ $output=”<!– gallery 1 was here –>”; // Must be non-empty. return $output; } add_filter( ‘post_gallery’, ‘remove_the_first_gallery’ ); That removed all galleries on the page. But since my new gallery isn’t technically a post_gallery, it was left alone.
next_image_link Displaying All Images Attac
Whenever you create a gallery, in the gallery settings (right side of the Edit Gallery screen), you have the option Link to: Link to attachment page Link to media file Nothing Link to media file will open the image. Be advised that without some form of Lightbox plugin, the image will NOT open in an … Read more
I suggest going with a slider plugin like Layer Slider or this http://www.wonderplugin.com/wordpress-slider/ . You’re right that a plugin search for this kind of topic has the potential to be endless, so look for customizability and extendability in the plugin. Similarly for going the DIY route. There’s no need to reinvent the wheel. Find a … Read more
I believe your issue is that you’ve checked this box in the media settings: Every image uploaded afterwards had it’s thumbnail cropped to fit those proportions. Unchecking the box will fix this for new uploaded images but your existing photos will still be cropped. You can however regenerate the image thumbnails using the new settings. … Read more
Standard WordPress gallery – Possible to open image in page?
get_post_gallery() returns an array with ids of the gallery images and the urls of the thumbnail (150×150 by default). The ids are returned in a string with a comma separated list of ids. If you want to get a different image size, you will need to get it in the foreach loop using the ID … Read more