I have been at this for days and now feel like I am way off track out of desperation and lack of knowledge. Pretty much I am trying to "scrape" public info from one Wordpress install to a separate Wordpress site. The sites are on different domains, servers and databases. Site A (the one I need to grab the content from) uses an RSS Feed which I have been able to successfully pick up. However each post contains an image ( i dont know if it is featured or not) and I really need to know how to get that image to display.
At first I ran my own loop and was picking up everything aside from the image, then I tried just setting up Simplepie in the theme and still could not get the images to pick up. Then I was trying a method described on here about XMLRPC and still no luck. I am about to pull my hair out and I just dont have enough knowledgebase on the subject to get what I need done.
How can I get the feed and image to display from Site A to Site B? I have read so much stuff I feel like I am so lost. Any help would be greatly appreciated, thanks
EDIT
Here is what I have been using which works as far as picking up the feed but not images
<?php function custom_dashboard_feed() {
$feed = fetch_feed( 'http://mugshots.starnewsonline.com/feed' );
if ( ! is_wp_error( $feed) ):
// Get a maximum of 5 items
$maxitems = $feed->get_item_quantity( 5 );
$items = $feed->get_items( 0, $maxitems );
foreach ( $items as $item ):
?>
<p class="rss-widget">
<a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a> <span class="rss-date"><?php echo $item->get_date( 'F j, Y' ); ?></span><br />
<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<img src="<?php echo $item->get_image_url ?>" height="200" width="200" />
</div>
<?php endif; ?>
<?php echo $item->get_description(); ?>
</p>
<?php
endforeach;
else: // Returned WP_Error, unable to fetch the feed. ?>
<p>There was an error fetching the feed, please try again later</p>
<?php endif; ?>
<?php
} ?>
<?php $mugshots = custom_dashboard_feed(); echo $mugshots; ?>
