How to redirect image attachments to parent posts?Home › Forums › Iconic One Pro Support › How to redirect image attachments to parent posts?This topic has 4 replies, 2 voices, and was last updated 10 years, 9 months ago by Gemini23.Viewing 5 posts - 1 through 5 (of 5 total)AuthorPosts April 5, 2014 at 3:33 pm #1964 Gemini23ParticipantI would like my image attachments to redirect to their parent posts…I have tried adding this to the first line of image.php but it doesn’t work<?php wp_redirect(get_permalink($post->post_parent)); ?>Please can you advise how I can get image attachments to redirect to their parent posts…Thanks April 5, 2014 at 7:23 pm #1966 Themonic-SupportKeymasterYou do not have permission to view this content. April 5, 2014 at 11:02 pm #1968 Gemini23ParticipantI use an attachment redirect on another website of mine and it works fine but on this website it doesn’t – the main difference between the two websites is the THEME… ie.. Iconic One doesn’t work.. which is why the question was posted here…. April 6, 2014 at 8:14 am #1969 Themonic-SupportKeymasterYou do not have permission to view this content. April 6, 2014 at 11:09 am #1972 Gemini23ParticipantThanks for clarifyingAuthorPostsViewing 5 posts - 1 through 5 (of 5 total)You must be logged in to reply to this topic.Log In Username: Password: Keep me signed in Log In