Julia, I’m using the RSS feeds and that’s working great! Thanks for that tip, now I’d like to also pull the featured image from the post but I can’t seem to get that to work
<?php // Get RSS Feed(s)
include_once('/wp-includes' . '/feed.php');
// Get a SimplePie feed object from the specified feed source.
$rss = fetch_feed('https://reconstruct.rappahannock.edu/rappenings/feed/rss');
if (!is_wp_error( $rss ) ) : // Checks that the object is created correctly
// Figure out how many total items there are, but limit it to 3.
$maxitems = $rss->get_item_quantity(3);
// Build an array of all the items, starting with element 0 (first element).
$rss_items = $rss->get_items(0, $maxitems);
endif;
?>
<?php if ($maxitems == 0) echo '<li>No items.</li>';
else
// Loop through each feed item and display each item as a hyperlink.
foreach ( $rss_items as $item ) : ?>
<p class="rappening">
<?php
if ( has_post_thumbnail() ){
the_post_thumbnail( 'thumbnail' );
} else {
echo '<img src="/wp-content/themes/css/images/default_thumb.png" alt="Example Image" title="Example" />';
}
?>
<a href='<?php echo $item->get_permalink(); ?>'
title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'>
<span class="date"><?php $item->get_date('j F Y | g:i a'); ?></span>
<?php echo $item->get_title(); ?></a>
</p>
<?php endforeach; ?>
That’s what I’ve got current but it can’t seem to find the thumbs, any ideas?