Topic Closed
43 Posts
2 Plugins

I was looking for a way to embed an rss feed into my page, to display the last posts from my wordpress blog.

I found a few ways to display an rss feed in php, and I was thinking to make a plugin for that. But then I noticed, it's so easy, you don't even need a special plugin, you can do it with the plugin "Execute PHP".

I installed the "Execute PHP" plugin and used this tutorial (it's in german, but the php script can be found here). I simply copied the whole script into a php section on my page and added the function call at the end. For non-german speaking people I'll translate the function call here:

function getRssfeed($rssfeed, $cssclass="", $encode="auto", $anzahl=10, $mode=0)

$rssfeed Link to the RSS feed
$cssclass Name of the CSS class for the output DIV (rssfeed_ is automaticaly prepended)
$encode Encoding mehtod, e.g. "utf-8". "auto" uses the encoding from the feed, "no" uses no encoding
$anzahl Number of Items to be displayed
$mode Display mode (0 = Display only titel and link of the item; 1 = Display title and link to the channel; 2 = Display title, link and description of the item; 3 = 1 & 2)

Right now I can already add and edit any number of rss feeds to my page, which would not be easily achivable with a plugin. Maybe I'll make a plugin out of it anyway, to eleminate the need for the "Execute PHP" plugin.

12 years ago#2127

Josh S.
2K Posts
16 Themes
18 Plugins

A plugin would be awesome!

12 years ago#2218

Topic Closed



elFinder 2.1.50 in Upcoming Release

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

Log In