attachment.php & flexslider—linking thumbnail to specific image

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

Replacing an Image gallery

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.

how to open image gallery in a post/page?

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

Create thumbs/gallery from custom fields

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

Options for an SEO gallery?

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)