Link to first image attachment in a wordpress post

Posted by mattloak on Stack Overflow See other posts from Stack Overflow or by mattloak
Published on 2010-03-21T20:33:57Z Indexed on 2010/03/21 20:41 UTC
Read the original article Hit count: 412

How would I create a text link to the first image attachment page in a wordpress post without trying to figure out what the slug will be after it is published. I realize that I can link the images to their attachment page but I wan't to be able to create a text link. Is this possible?

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about wordpress-theming