Camen Design Forum

Delete

(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[13]: How to get latest posts

jos

Its very simple.
Just save the joinfeeds.php file and then have your test.php be like this

%
<?php
    require_once 'forum/joinfeeds.php';
    $latestfeeds=latestFeed(5);

//Print some stuff from entries
foreach($latestfeeds as $feed) {

echo $feed->link," ",$feed->title," ",$feed->description
}

?>

%

I havent tested the above so experiment and use php.net for help. You have to take a look at the index.xml files to see what is available

:: @Jos added on 25 Jul ’16 · 18:27

Beware of path of require_once 'forum/joinfeeds.php';

:: @Jos added on 25 Jul ’16 · 18:29

And remember this is something that is perfect for me. It does not necessarely something for your setup, but its simple and easy to adapt to your needs. No need to a complex tools when something as simple does the job.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn