Tag Info

New answers tagged

0

Instead of the_title() try this: echo get_the_title($_img). It should only work inside the foreach loop.


0

get_post_gallery() returns an array with ids of the gallery images and the urls of the thumbnail (150x150 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 of the image and a proper WordPress function, for example ...


0

Assuming that bungeshea is right and you want to retrieve the IDs of images attached to a gallery using PHP, you can filter 'shortcode_atts_gallery', like this: add_filter ('shortcode_atts_gallery', 'wsec_filter_gallery_atts', 10, 3); function wpsec_filter_gallery_atts ($out, $pairs, $atts) { $ids = $out['include']; // Do what you want with the ids ...


0

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. To do so you can ...


1

By Using add_theme_support( $feature, $arguments ); Support for the gallery and caption Example add_theme_support( 'html5', array('gallery', 'caption' ) ); Source: http://codex.wordpress.org/Function_Reference/add_theme_support


0

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 strong jQuery ...


1

Try this: add_theme_support( 'html5', array( 'gallery', 'caption' ) ); And don't forget to declare the HTML5 DOCTYPE at the very beginning of header.php with: <!DOCTYPE html>


0

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 overlay/lightbox, but instead as a new document. There ...



Top 50 recent answers are included