You can get any live site post to your website.
require_once('php/autoloader.php'); $feed = new SimplePie( ); $feed->set_feed_url('here site url with feed'); $feed->init(); $feed->handle_content_type();
About code are requirement to your get post to live site set in set_feed_url(‘here site url’)set and below code to display information are post and with content and another etc….
foreach ($feed->get_items(0,10000) as $item): ?> <div class="item"> <h2><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h2> <p><?php echo $item->get_description(); ?></p> <p><small>Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></small></p> </div>
And You can download Completed Example Click me
Simple you can download and extract to your xampp\htdocs folder.
and goto browser and write to http://localhost/feed/test.php
And You can more read about this Simplepie Click Here
Than Display to post list are this blog . and you can change to set your site address in test.php file in set_feed_url location set to your requirement.
I hope This is use full to you
Thanks…….