4 easy steps to Create your own private Twitter site using WordPress

Do you want to create your own private Twitter site using WordPress? Twitter is an social networking service and online news where users can post and interact with messages.

With the large popularity of Twitter theses days, many people are asking themselves how can they create their own Twitter-like network for their family, friends or company. In this article we will show you how to create it easily using WordPress.

1. Installing WordPress

First of all install WordPress on your server. For more see our guide on how to install WordPress Installing WordPress is simple. WordPress is popular as it easy to install.All good WordPress web hosting companies authorize you to install WordPress with a few clicks. In most of the cases installing WordPress is very easy process that takes less than five minutes to complete.

2. Get your copy of the P2 theme

The guys from Automattic (The company behind WordPress) announced, some time before, a very good WordPress theme for social microblogging. The theme is called P2 and you can get it for free here.

After downloading P2, uncompress the archive and upload it to the wp-content/themes directory of your WordPress install. Once done just login to your WordPress dashboard and go to “Appearance”, “Themes”. Select the P2 theme and activate it.

That’s easy as that, you have successfully installed P2 and you’re ready for social microblogging.

3. What about a login form?

The P2 theme itself is very good, it is possible to increase it even more. As P2 grants users to post straightly from the front page, without visiting WordPress dashboard, a good idea should be to integrate a control panel in the theme sidebar.

In case the user isn’t logged in or have no account yet: We’ll show a login form as well as a link to register, so the visitor can build his account.

If the user is already logged in: We’ll show a link to logout as well as a link to account options, so the user can simply update his/her profile.

For integrating a login form in your theme sidebar, open the sidebar.php file and paste the below given code:


<?php global $user_ID, $user_identity, $user_level ?>

<?php if ( $user_ID ) : ?>


<h2>Control panel</h2>


<li>Identified as <strong><?php echo $user_identity ?></strong>.


<li><a href=”<?php bloginfo(‘url’) ?>/wp-admin/”>Dashboard</a></li>

<li><a href=”<?php bloginfo(‘url’) ?>/wp-admin/profile.php”>Profile and personal options</a></li>

<li><a href=”<?php bloginfo(‘url’) ?>/wp-login.php?action=logout&amp;redirect_to=<?php echo urlencode($_SERVER[‘REQUEST_URI’]) ?>”>Logout</a></li>


if (is_single()) {?>

<li><a href=”<?php bloginfo(‘wpurl’);?>/wp-admin/edit.php?p=<?php the_ID(); ?>”>Edit Post</a>


<?php } ?>




<?php elseif ( get_option(‘users_can_register’) ) : ?>




<form action=”<?php bloginfo(‘url’) ?>/wp-login.php” method=”post”>


<label for=”log”><input type=”text” name=”log” id=”log” value=”<?php echo wp_specialchars(stripslashes($user_login), 1) ?>” size=”22″ /> User</label><br />

<label for=”pwd”><input type=”password” name=”pwd” id=”pwd” size=”22″ /> Password</label><br />

<input type=”submit” name=”submit” value=”Login” class=”button” />

<label for=”rememberme”><input name=”rememberme” id=”rememberme” type=”checkbox” checked=”checked” value=”forever” /> Remember me</label><br />


<input type=”hidden” name=”redirect_to” value=”<?php echo $_SERVER[‘REQUEST_URI’]; ?>”/>



<li><a href=”<?php bloginfo(‘url’) ?>/wp-register.php”>Register</a></li>

<li><a href=”<?php bloginfo(‘url’) ?>/wp-login.php?action=lostpassword”>Recover password</a></li>


<?php endif; ?>


  1. Making your network private

As the login/register form option can be better in some case, it will still authorize people to read your discussions and search engines to index your content. If your requirement is a 100% private website, don’t worry.

To do so, we’ll use a WordPress plugin  Private WP. After that extract the archive on your hard drive and upload the private-wp to the wp-content/plugins directory of your WordPress install. After then login to WordPress, go to the dashboard, then to “Plugin” and activate the plugin. Now, your website will automatically find logged in users, who’ll be able to read and post content, and unknown visitors, who’ll be automatically redirected to WordPress login panel.


WordPress will display how extensible and powerful it is. If you’re well-known with WP, building this “Twitter-like” site using the P2 theme should not take you more than 30 minutes.

This article was mainly aim on making a private microblogging site and used only basic techniques, but there’s a lot of other interesting things that can be done in order to boost this “Twitter-like” site. For example, you may want to create a page template listing all members, or even good, filtering posts to see only those posted by a selection of members? We hope that this article helped you in creating your own private Twitter Website via WordPress.



Leave a Reply

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