Displaying recent WordPress posts in Pligg

Posted In Modules - By Geoserv On Monday, November 9th, 2009 With 119 Comments

In this tutorial I will show you how to start integrating your WordPress blog into your Pligg install by displaying your recent blog posts in your Pligg sidebar.

One way to add to your Pligg install is to add a WordPress blog. The blog can be used for promoting certain site features, posting top 10 lists or posting site news. A blog is a great way to increase your site’s traffic and exposure.

Integrate Pligg and WordPressIntegrate Pligg and WordPress

 

I added a WordPress blog to FAQPAL a couple of months ago and it has certainly helped.

One way to integrate the blog is to display your recent blog posts in the Pligg sidebar, this will again add to your blog traffic and ultimately your Pligg install traffic.

In order to do this, you will need to download the latest version of Simplepie, once downloaded, unzip it, and upload it to your 3rdparty folder. It will take approximately 5 minutes to upload, as it is a huge folder.

SimplePie

Now in order to make this work, you must choose a .php file to add the following code, I have used sidebar_stories_u.php (using v9.9.5) and added it to the bottom.

In Wistie open libs/sidebarstories.php, add to the bottom:

< ?php
$feed_url = ‘http://www.YOURSITE.com/blog/feed/’;
$max_items = 5;
 
//Load SimplePie
include ‘http://www.YOURSITE.com/3rdparty/simplepie/includes/simplepie.inc’;
 
//Fetch the RSS feed
$feed = new SimplePie($feed_url);
 
//Check for errors
if ($feed->error())
        echo ‘Error : ‘,$feed->error();
 
//Output up to $max_items posts
foreach ($feed->get_items(0, $max_items) as $item): ?>
        <div class="item">
                <h3 class="title"><a href="<?php echo $item->get_permalink(); ?>">< ?php echo $item->get_title(); ?></a></h3>
                < ?php echo $item->get_description(); ?>
                <p><small>
                Posted  < ?php if ($author = $item->get_author()){ echo ‘ by ‘.$author->get_name(); }?>
                on < ?php echo $item->get_date(‘j F Y | g:i a’); ?>
                </small></p>
        </div>
< ?php
endforeach;
?>

In the above code, make sure you change the domain to match yours, as well make sure the path to your blog is correct.

The code above will display “5″ of your recent entries, which you can change by altering:

$max_items = 5;

it will also display the excerpt for the each blog post, author name and date. I chose to only display the title, so you can remove the following:

                < ?php echo $item->get_description(); ?>
                <p><small>
                Posted  < ?php if ($author = $item->get_author()){ echo ‘ by ‘.$author->get_name(); }?>
                on < ?php echo $item->get_date(‘j F Y | g:i a’); ?>
                </small></p>

That’s it. This module will work on both v9.9.5 and the latest Pligg build. You will need to do whatever styling you want in order to blend it in with the rest of your site.

You can see a working example on FAQPAL, check out the blog as well.

As always, any issues leave me a comment below.

Will you be using this on your Pligg install?

If you are on travel, you should not worry about VCP-410 prep and 70-686? Check out our latest resources for mcse questions for practice with definite guarantee of pass4sure mcts.

Related Search:

  • wordpress and pligg
  • wordpress pligg
  • install wordpress and pligg
  • intégration pligg wordpress
  • pligg plugin wordpress
  • pligg sidebar widget
  • pligg sidebarstories class
  • submit pligg plugin wordpress

About - Geoserv has been working with the Pligg CMS for 2+ years.

  • http://www.funintofitness.com.au/ Fitness Gold Coast

    If you have hosted your WordPress blog, then I sugges you to get the AdSense plugin from the Extend section of WordPress.

  • http://www.tanitimdukkani.com/ orumcek stand roll up

    WordPress is much easier than the standard HTML and does not required experience in webdesign to create a beautiful website.

  • http://www.awesome-weddings.com/wedding-decorations/index.html Wedding Decorations

    Word press has a function titled “Post Revisions” that when each time you save draft or publish a post or page and saves a revision copy of that post or page.

  • http://www.awesome-weddings.com/wedding-decorations/index.html Wedding Decorations

    Many WordPress users thought it was a good idea and I quickly had a lot of members, due to the great promotion from WpHacks. Sadly, spammers came too. And they were very, very active.

  • http://karasuhuzuremlak.com karasu emlak

    Thanks for the tip. Very useful.

  • http://www.stellarinfo.com/ data recovery

    Nice Way to Tell the process about the worpress integrating with blog

  • http://www.edenluxuryhomes.com/ Eden

    very good post , we learned so much here

  • http://www.edenluxuryhomes.com/ Eden

    very good information

  • deneyelim

    WordPress is much easier than the standard HTML and does not required experience in webdesign to create a beautiful website.

  • http://www.costumesupercenter.com/ costumes

    I thought, You need to pay for that plugin.

  • http://www.lidamarketa.com Asdas

    asdasdasdasdadasd asd

  • http://www.can-c.net/ Cataracts Drops

    Nice Information…

  • http://www.can-c.net/ Cataracts Drops

    Nice Information about WordPress plugging….

    Thanks for sharing

    Jacob lee

  • http://carhireshop.com.au/ Car Hire Shop

    thanks for code.

  • http://www.earth-towne.in Matt

    Nice code thanks for sharing it.

  • http://www.aseks.com sex shop

    Nice code thanks for sharing itsNice code thanks for sharing its

  • http://www.bedsforlife.com.au Beds Melbourne

    I have searched examples, all I found are WordPress Plugins or complex code. I just want an example which will show my last tweet in my wordpress header theme.

  • http://www.bidetinternational.com Bidet

    This is great info for getting your WordPress blog to link with your Pligg site. Thanks for sharing it. It will add fresh content to your Pligg content which looks good for the search engines.

  • erotik shop

    I have searched examples, all I found are WordPress Plugins or complex code. I just want an example which will show my last tweet in my wordpress header theme

  • http://www.allvoices.com/contributed-news/5807173-tej-kohli-ipad-review Tej Kohli

    where on earth do you get this useful information from? Great tool! kudos

  • http://www.canedirectfurniture.co.uk/ outdoor furniture

    This module will work on both v9.9.5 and the latest Pligg build. You will need to do whatever styling you want in order to blend it in with the rest of your site.

  • http://www.acai-berry-buy.com/ acai

    This is great info for getting your WordPress blog to link with your Pligg site. Wonderful read to all web designers.

  • http://www.merabasera.com/ Buy Property

    Pligg always share great information among all internet users and i always read Pligg articles and new update.Thanks for share

  • http://www.squadmafiakennels.com kennel dogs

    Domains don't mean anything. All a domain does is provide DNS to ip addresses. So technically speaking all 3 domains could be on the same server in different folders using virtual hosts on Apache(webserver).

  • http://girlytattoosdesigns.com/ Girly Tattoos

    Great tips and thanks for sharing it with us. It is exactly what I was looking for lately. Its nice that you share all the news with other people. Cheers

  • julia

    nice topic on pligg

  • http://www.acai-berry-buy.com/ acai

    This is great info for getting your WordPress blog to link with your Pligg site. Thanks for sharing it.

  • http://www.squadmafiakennels.com kennel dogs

    Since no one includes Pligg in their one click install, you have to install it yourself, but it's not that hard to customize it. Just install it, choose a template and start adding content and links to your site.

  • http://www.pickupmytree.com/ christmas decoration

    I thought there was a setting to automatically truncate each post; had no idea it was something I had to do to each one as I wrote it.

  • http://www.canedirectfurniture.co.uk/ outdoor furniture

    I want to make a website which can be easily updated. with the help of WordPress.

  • http://autoblogsamurai.us/review-of-auto-blog-samurai-and-its-bonus-by-paul-ponna.html Paul Ponna

    Hwo to dispaly the all blogs posts in wordpress mu main page?

  • http://www.seolinkvine.ws/zero-down-traffic-blueprint-review-bonus-and-discount.html zero down traffic blueprint

    A good post that i enjoyed reading. It was very informative and i will give it a go, as why not

  • http://www.seolinkvine.ws/zero-down-traffic-blueprint-review-bonus-and-discount.html zero down traffic blueprint

    A good post that i enjoyed reading. It was very informative and i will give it a go, as why not

  • http://www.solushunzindia.com/ Web Designer Delhi

    Hi,
    We will be waiting for your new upcomming.

  • http://www.can-c.net/ Cataracts Drops

    Code is useful for me, i will use this, thanks for this.

  • http://www.canedirectfurniture.co.uk/ outdoor furniture

    I guess it should be CK. I’m not sure how you would do it, but certainly would involve re-working login.php.

  • Merabasera

    hey dear,thanks for the good information to internet user………

  • http://www.sareez.com/Salwar-collection/ online salwar kameez

    We need a link to your blog, starting with http, in order to give appropriate answers.

  • http://www.pickupmytree.com/ christmas decoration

    I don’t see why not.. This is a very straightforward theme modification that should be easy with just about any theme.

  • http://www.canedirectfurniture.co.uk/ outdoor furniture

    I want to make a website which can be easily updated. with the help of WordPress.

  • http://www.berelevantgroup.com Sales enablement

    Have you ever considered adding more videos to your blog posts to keep the readers more entertained? I mean I just read through the entire article of yours and it was quite good but since I'm more of a visual learner,I found that to be more helpful well let me know how it turns out! Thanks Author..

  • http://www.canedirectfurniture.co.uk/ outdoor furniture

    I started a blog in word press. I posted two articles. I found an ads by google. After working for some more time, now i find tat ads missing. Wats wrong with it?

  • http://www.squadmafiakennels.com kennel dogs

    How can i put a link to my latest WordPress post in my Yahoo email signature?

  • http://www.squadmafiakennels.com kennel dogs

    How can i put a link to my latest WordPress post in my Yahoo email signature?

  • http://www.canedirectfurniture.co.uk/ outdoor furniture

    Hwo to dispaly the all blogs posts in wordpress mu main page?

  • http://www.rightwaysolution.com Web Development

    Simplepie is good tool for display wordpress post in pligg. I will check it out.

  • http://www.turkeytourmarket.com/ istanbul tour

    We will be waiting for your new upcomming. :)

  • http://starbrightamusements.com/ amusement

    i want to know where the database of my wordpress work stored? i worked on wordpress project and its working fine on my local host.. i dont know where its data base stored ? can any one please tell me coz i have to send that database to my client, but i dont know what to send him so that he may see my work.I send him the wordpress folder that i installed but i suppose i need to send database,, where i can found that, please helpppppppp

  • http://www.canedirectfurniture.co.uk/ outdoor furniture

    Hwo to dispaly the all blogs posts in wordpress mu main page?

  • http://www.canedirectfurniture.co.uk/ outdoor furniture

    I think you answered your own question. WordPress is blogging software and you can update it as often as you’d like. Now go register a domain, find some hosting and install WordPress. There’s really not much else needed.