Here is another little trick – that might get more folks to log in your site and leave a comment with facebook.
Open up your theme editor in WP.  Find sidebar.php or sidebar2.php and just after the sidebar Div Tags add something like this:
<h2> Who is New?</h2>
<ul>
<?php $usernames = $wpdb->get_results(“SELECT user_nicename, user_url FROM $wpdb->users ORDER BY ID DESC LIMIT 5″);
foreach ($usernames as $username) {
echo ‘<li><a href=”‘.$username- rel=”nofollow”>user_url.’”>’.$username->user_nicename.”</a></li>”;
}
?>
<li><p>Want to be listed here? Log In and leave a comment with facebook</p></li>
</ul>
Of course you do need the plugin we talked about here or to have them register with your blog through WP’s normal log in procedure.
Tagged with:
 

2 Responses to More WP Facebook Hacks.

  1. sparky says:

    Speaking of interesting “hacks” … here’s another one for you.

    https://graph.facebook.com/search?q=cornflower&type=post

    :)

  2. God, do I still remember how to make a real comment without Scrapebox???

    Love the site, Ed, and looking forward to learning more of your great tips and tricks.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>