RSS – get text and img
-
Hi,
I’m looking for a way to get TEXT and IMG from an RSS.
Here is the RSS.So far I have managed to get the text using this code:
<?php include_once(ABSPATH . WPINC . '/rss.php'); $rss = fetch_rss('https://www.tasteline.com/rss/middagstipset/?imgitem=1'); $items = array_slice($rss->items, 0, 4); if (empty($items)) echo '<li>No items</li>'; else foreach ( $items as $item ) : ?> <a style="font-size: 14px;" href='<?php echo $item['link']; ?>' title='<?php echo $item['title']; ?>' target="_blank"><?php echo $item['title']; ?></a><br /> <p> <?php echo substr($item['summary'],0,strpos($item['summary'], "This is a post from")); ?></p> <?php endforeach; ?></td>
However – this only seems to be able to get the text and link.
Is there a way (via some kind of parser) to get the IMAGE and the TEXT?
Kind regards,
EvilPixy
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘RSS – get text and img’ is closed to new replies.