sinanisler Yes, of course. You'll need multiple references
The script you are looking for is written in WordPress and is a function I created
function front_page_news () {
$json = file_get_contents('https://hub.phenomlab.com/api/discussions');
$obj = json_decode($json, true);
//print_r($obj);
for($i = 0; $i < 12; ++$i) {
$posturl = $obj['data'][$i]['id'];
$thistitle = trim($obj['data'][$i]['attributes']['title']);
$thisurl = '<a class="recent-items" href="https://hub.phenomlab.com/d/' . $posturl . "-". $obj['data'][$i]['attributes']['slug'] . '">';
$thisitem .= "<div class='recent-list'><div class='icon'><i class='fal fa-crosshairs'></i></div>" . $thisurl . $thistitle. "<br></a></div>";
}
return $thisitem;
}
add_shortcode( 'fpn', 'front_page_news' );
Obviously, you'll need to change the URL above to your own, as this will pull from my site otherwise.
You can then call shortcode [fpn]
anywhere in WordPress
Everything I do in my forum I tend to "document" for the community, which can be found here
https://discuss.flarum.org/d/20955-phenomlab-technology-forum
A bit of a long read, but I get asked numerous questions on layout, code, etc, and place them here so others can use them.
The RSS -> Post script can be found here
https://discuss.flarum.org/d/24017-create-posts-from-rss-feeds