Skip to content

How can I include a feed? #160

Discussion options

You must be logged in to vote

I'm using a simple script based on simplexml_load_file function which is already included in php5, so no need for extra classes like magpie or something.
http://webdesign.weisshart.de/rss2html.php

Explanations are in german, the script itself however is fairly simple to use. A drawback is missing caching functionality, but for me this isn't a problem yet.

  1. Create a new yellow content snippet based on one of the existing snippets, e.g. copy content-main.php to content-home.php, content-about.php or whatever your page is which should parse the feed.
  2. Paste the html2rss function at the beginning of content-home.php.
  3. At the end of the same file, right after the line:
    <?php echo $yellow->page->…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by annaesvensson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #160 on December 27, 2020 12:51.