• Resolved gmgartner

    (@gmgartner)


    My posts for a particular blog consist of a photo with a caption. Sometimes a group of photos as a gallery. When the posts show on the front page or in an archive, the title links to the post but the photo links to the image file.I want the excerpt picture to link to the post as the title link does. Once on the post page, I want the picture to link to the image file (for lightbox display, etc.). I don’t think that the_excerpt is being called as the image still appears in the listings. I presume that the_content is being called instead.

    I don’t want to use a plugin as I see this as theme specific functionality. Is there a function I can write, or something I can do in attachment.php to get this to be default behavior for the theme I am using?

    http://peopleofsheboygan.com

Viewing 1 replies (of 1 total)
  • Thread Starter gmgartner

    (@gmgartner)

    This “issue” turned out to be user error – imagine that! I was posting with the post format as “image” instead of “standard”. The behavior that I encountered was inherent in the “image” format for posts. Posts were changed to “standard” format, and all is now well in the land of photoblog.

Viewing 1 replies (of 1 total)
  • The topic ‘Image link behavior’ is closed to new replies.