1285935237_file_PHP

Show wordpress blog posts in any other CMS (EE, joomla)

Hi Friends !!

After long tine, I am back for posting. Today I had a great experience.

Currently since from few weeks, I am working with Expression Engine. Now you thought that what is Expression Engine.

Now let me explain you in little brief. Expression Engine is one of the great CMS software like wordpress, Jommla, Drupal etc.

So when I was working with this, I faced one requirement like show latest posts of wordpress blog into Expression Engine site.

So I am wondering at that time that how it would be possible ? But I believe that in Web World, There is nothing impossible.

After long research, I found solution and this technique is works in any other CMS like joomla, Drupan etc. I explain here how it works.

We have to use SimplePie for this technoque. Now what is simplepie ? SimplePie is a RSS feed parsing in PHP. Just copy and paste below code :

<?php $feed = new SimplePie(‘http://wordpress.org/news/feed/’); ?>
<?php foreach ($feed->get_items(0, 3) as $item): ?>
<div>
<a href=”<?php print $item->get_permalink(); ?>”> <?php print $item->get_title(); ?></a>
<p><?php echo shorten($item->get_description(), 100);?> </p>
</div>
<?php endforeach; ?>

<?php $feed = new SimplePie(‘http://wordpress.org/news/feed/’); ?>
<?php foreach ($feed->get_items(0, 3) as $item): ?>
<div>
<a href=”<?php print $item->get_permalink(); ?>”> <?php print $item->get_title(); ?></a>
<p><?php echo shorten($item->get_description(), 100);?> </p>
</div>
<?php endforeach; ?>

Thats it !! If you think that this post is useful for you or if you have any issue or any problem then just comment me on this post.

Thanks !

  • http://possible.in/ joomla development

    Nice to see you blogging again!

    Is the EE is another cms with extra features rather than wordpress and joomla??
    What else features are available with EE?

  • http://www.rochstgeorges.com Roch

    What I am looking to do is similar. I am looking to have a static page as well as the blog appear on the main page of my wordpress site. Right now going to the settings section will only allow me to do one or the other. any feedback would be appreciated.

  • Syscraft In

    joomla is very good example of contant management. It is based on pHP development.

  • http://www.syscraftonline.com Syscraft In

    Joomla is a new technology for contant management.

  • http://pleasanton.mrdrain.com/plumbing.php pleasanton Plumbing

    A wonderful article you posted. That is so informatory and creative.Your blog provided us beneficial information.

  • Claudiaortu

    Hi, thanks for this. I need to use it in a Joomla website … where do I put this code? and where do I insert the address of the blog I want to use?
    Thanks a lot

  • http://losgatos.mrdrain.com/emergencyplumbinglosgatos.php los altos Plumbing

    You have some good
    points! This is a very useful post. Please keep updating your blog with the
    latest demand in solar systems today.
     

  • http://losaltos.mrdrain.com/ plumbing los altos

    Pretty nice blog post! This has been a really wonderful post. Many thanks for shearing  this info.
     

  • http://www.facebook.com/people/Payal-Patel/100000784886541 Payal Patel

    this is testing