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:

  • internetdizi com
  • wordpress and pligg
  • izmircetesisonbolum blogcu com
  • integrate pligg with wordpress cms
  • wordpress plugin post to pligg
  • in the aftermath My Pligg Site gives you a place to save and share your fav
  • overpermissive My Pligg Site gives you a place to save and share your favor
  • plugin similar pligg wordpress
  • pqugizclug
  • remove My Pligg Site gives you a place to save and share

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

  • http://www.fowlersmotors.co.uk/modules/shop/finance.asp guaranteed car loans

    The blog was absolutely incredible! Numerous great data and inspiration, each of which we all want!b Hold ‘em coming…

  • http://www.incontinencechoice.co.uk/ Incontinence Pads

    How nice I found this blog, I couldn’t discover any info on this subject matter prior to. I also run a blog and if you want to ever serious in a little bit of guest writing for me if possible feel free to let me know, i’m always looking for people to review my site. Please stop by and leave a comment sometime! Thank you!

  • http://www.awesome-weddings.com/ Bridal Wedding Shoes

    I have a website that I’d to be able to grab and display the last post from a specific category in WordPress. I have WordPress hard-installed on my site (I store the information on my server.)

  • http://izmircetesisonbolum.blogcu.com/ izmir çetesi son bölüm izle

    gastirizon like

  • http://www.themattresssuperstore.co.uk Memory Foam Mattress

    As social media use in marketing the value and importance of social media applications is increasing all the time. Thousands of applications are being developed so it is important for companies to make a full use of features offered by social media.

  • http://www.komododragonfacts.com Komodo Dragon

    Thanks for explaining this properly as I’ve been wondering how to integrate WP with Pliggs for sometime and wasn’t really too successful at it.

  • http://www.stellarinfo.com/outlook-pst-file-recovery.htm PST Recovery

    You are exploring such a great information about wordpress or how to build link between wordpress and pliggs. Rated Up!!!

  • http://www.stellarwindowsdatarecovery.com/ Windows Recovery

    The Blog was absolutely great data and inspiration…. Very get new ideas here….keep it up

  • http://www.utilitysoftwarereviews.net driver detector

    I must say one thing that you are truly a mind blowing writer.

  • http://www.themattresssuperstore.co.uk Memory Foam Mattress

    I want to start a blog on stress management. I would like to put little things on my blog that will make life easier, for instance I saw a plug-in that links directly to Yahoo weather. Earth-shattering! No, but it makes the decision what to wear a bit easier.Can you help with suggestions,Please? Preferably free and tested.

  • http://www.canvasmemories.ca canvas art toronto

    nice post..i am impressed.

  • http://www.collegesurvivalgear.com/ College Gear

    I would like to know how to do the opposite, Have my blog posts show up on Facebook but i have had a hard time and had to use twitter as a work around but not happy with the results. Do you have a code for that?

  • http://www.hairup.gen.tr sac cikarici

    Proposals such as the cutting of your hair color is also very important! Perçemin curly hair, thick hair too much and if you have short hair as a model yakışmaması sector, for reasons such as haircut regrets after cutting is as important as that can not be ignored. That suits you the most of your hair according to the type of hair cut model suggestions.

  • http://www.richerornot.com Make Money Online

    that is a good tool but i just use a widget to do this trick.

  • http://www.richerornot.com Make Money Online

    that is a good tool but i just use a widget to do this trick.

  • http://www.snogglenews.com/ Snoggle News

    Now THIS is some useful code. Thanks so much for this, been looking everywhere for a WP import. Now just need to figure out the user login code…

  • http://www.wpkube.com Dev

    There is module available for doing this. I’m using it on Pligg Site.

  • http://www.internetdizi.com dinle

    ı am learn thanks

  • http://www.websiteseoprofessionals.com SEO Professionals

    Pligg – Free social news submission software. Want to run a news submission site like Digg? Pligg is the place to download and install free social news submission like software, run it on your VPS, hook up some Ads by Google, additional affiliate links, and build your online audience from search engine, online video, and social networking sites, such as MySpace, Facebook, Bebo, Twitter, FriendSter, and more.