How do I get the permalink of a post that an attachment image is attached to?
<a href="<?php echo get_permalink($post->post_parent); ?>">Attachment parent</a>
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago