Support » How-To and Troubleshooting » Gallery Image Attachment Page

Gallery Image Attachment Page

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi


    Forum Moderator

    When inserting a gallery, you are given the option to Link thumbnails to an Image File or an Attachment Page. Choose Image file.

    I ran into the same issue. It was resolved by changing wp-includes/image.php. In my case, I changed

    if ( count( $attachments ) > 1 ) {


    if ( count( $attachments ) < 1 ) {

    Of course, there are never < 1 attachments, so it will return false and instead of linking to the next image it will just link to the full size version of the current image.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gallery Image Attachment Page’ is closed to new replies.