Feedwordrpress is a wordpress plugin that syndicates content from RSS feeds to your blog. This is one of the best wordpress plugin if you wish to create an auto blog.
Normally Feedwordpress syndicates images within feeds. But some feeds provide images as attachments of the feed. These images are not shown in the posts created with syndicated posts. But the details of the attachment is saved as a custom field of the post.
Here is a code to display the images attached to the feed. Place this code within The Loop where you want image to be displayed.
<!--?php $enclosure = get_post_meta($post--->ID , 'enclosure', $single = true); ?> <!--?php $image=explode(chr(10),$enclosure); ?--> <!--?php if(!is_null($image)) : ?--> <img alt="<?php the_title_attribute(); ?>" src="<?php echo $image[0]; ?>" /> <!--?php endif; ?-->
This will display the attached image. You can further customize the display of the image by applying css styles to the image.
note: I have updated the code. If you have used the previous code try using the new code above.
Comments