I have posts with gallery. When visitor clicks to an image, goes to Attachment (image) page.
If a visitor clicks on “back” button will go back to “parent-post”, not much problem here…
If a visitor comes directly to attachment page via search engine, he/she can’t find the “parent-post”.
Therefore; I like to output a link on an attachment (image) page indicating the origin (link to parent page).
I have seen some attachment-pages displaying such:
“PARENT-POST (clickable) >> ATTACHMENT PAGE (clickable)
[Image here]
Click here to return PARENT-POST (clickable)”
Would someone guide me how can I accomplish above?