Revision: 57983
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 19, 2012 13:31 by bitsculptor
Initial Code
$args = array( 'post_type' => 'attachment', 'post_mime_type' => 'image', 'post_parent' => $post->ID ); $images = get_posts( $args ); foreach($images as $image): echo wp_get_attachment_image($image->ID, 'medium'); endforeach;
Initial URL
http://stackoverflow.com/questions/1815158/show-attached-image-to-post-on-wordpress
Initial Description
Gets a post or page's attached images and outputs them.
Initial Title
Wordpress get attachements for post or page
Initial Tags
Initial Language
PHP