[insert_php]
include_once( ABSPATH . WPINC . ’/feed.php’ );
$rss = fetch_feed( ’https://www.readability.com/karemyr/latest/feed/’ );
//$rss = fetch_feed( ’http://getpocket.com/users/karemyr/feed/all’ );
$maxitems = 0;
if ( ! is_wp_error( $rss ) ) : // Checks that the object is created correctly
// Figure out how many total items there are, but limit it to 5.
$maxitems = $rss->get_item_quantity( 5 );
// Build an array of all the items, starting with element 0 (first element).
$rss_items = $rss->get_items( 0, $maxitems );
endif;
if ( $maxitems == 0 ) :
_e( ’No items’, ’my-text-domain’ );
else :
foreach ( $rss_items as $item ) :
echo ’