How can you print the content from a post_parent in an attachment?
-
There is an article on the WordPress blog, and it has a gallery, and the gallery image opens as an attachment using an attachment.php (actually an image.php in this particular case).
The goal is to print the content (paragraphs) that exist on the blog onto the attachment page.
I’ve managed to print the title from the original blog on the attachment page, but am stumped trying to print the content – everything I try (a LOT of things, including suggestions from others) just prints the image ‘description’.
Any idea what code will reach back to the post_parent that has the gallery and grab its content and print it on the attachment?
Coding level: beginner – not good at php.
- The topic ‘How can you print the content from a post_parent in an attachment?’ is closed to new replies.