Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
196 views
in Q2A Core by
closed by
There are two known widgets that can parse RSS feeds contents from external sources. All of them are outdated, which were last committed some 5 or 7 years ago.

The one by Towhid now can only parse texts, and the script is dysfunctional if you select the thumbnail option.

Another issue is that a widget cannot be added exclusively to homepage. The option "recent questions and answers" may apply to those question-list pages in categories too.

Thanks for reading.
closed with the note: Found a solution
by
Much simpler than I thought:


$getUrl = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    $html = "";
$url = "https://yourwebsite.com/feed/";
$xml = simplexml_load_file($url);
if ($getUrl == "yourwebsite.com/")

{
for($i = 0; $i < 5; $i++){

    $image = $xml->channel->item[$i]->children('media', True)->content->attributes();
    $title = $xml->channel->item[$i]->title;
    $link = $xml->channel->item[$i]->link;
    $description = $xml->channel->item[$i]->description;
    $pubDate = $xml->channel->item[$i]->pubDate;

    $html .= "<img src='$image' alt='$title'>";
    $html .= "<a href='$link'><h3>$title</h3></a>";
    $html .= "$description";
    $html .= "<br />$pubDate<hr />";
}
echo $html;}
...