Liliia Kobzar|
Another technique for working with WordPress attachments, here’s how to display all images that are attached to the post, either before or after the existing post content.
For example, if you are using my User Submitted Posts, the following code will display all of the attached images to the post content. Add this to your theme’s functions.php file: