I know the template tag to insert an image's caption into the image's attachment template (image.php), but how do you insert text from the description field into the template?
I know the template tag to insert an image's caption into the image's attachment template (image.php), but how do you insert text from the description field into the template?
The description can be shown by using the_content(), just like the caption can be shown by using the_excerpt().
An attachment is just a special form of post. So the image.php should be like every other post template, and have a Loop and everything. The normal Loop functions then show what you need.
Thanks!
This topic has been closed to new replies.