I have a new site to show off my photography:
the point of this site is to publish my photoshoots as posts so clients can download the images. but I want to be able to choose if an image on the attachment page should link to the original (hi-res) image, or not be linked.
If there was a conditional php statement that said:
"if this post has category 25, then link to original"
that would solve it. Can anyone help? I'm not a php guy. Category 25 is my hidden client category, so I only want that category to link to the hi res.
my image.php file has this code:
<p class="attachment">ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></p>