I am using pods with wordpress and i am having some problem in displaying the post image Here is my code
<div>
<?php
$args = array(
'numberposts' => 1,
'post_type' => 'attachment',
'post_mime_type' => 'image',
'post_status' => null,
'post_parent' => $post->ID
);
$post = get_posts( $args );?>
<h4><a href="{@permalink}">{@post_title}</a></h4>
<?php
foreach($post as $image):
echo wp_get_attachment_image($image->ID, 'thumbnail');?>
<div>{@summary}<br/>
<a href="{@permalink}">Read More</a>
<hr />
</div>
<?php endforeach;
?>
the title and summary/excerpt are displaying well but the image (which is in posts) is only displating one image and then repeating the same image on the other posts. Could anyone hav an idea why?