Insert Social Media Submission Links In Your Theme Without A Plugin

Square

Now a days social media are getting more and more popular and most of the wordpress site owners use one or another social media plugin. Well what about just writing a few code to share with different social media then to load heavy plugins which will reduce your site speed and also when you use lot of plugin you are more open to the security threats.

Social Media
Social Media

So, here I am going to write few codes which you can add in your single.php file and you are all go to share your post with the popular social media such as facebook, twitter, digg, delicious, reddit and stumbleupom.

You can just copy and paste the following code in your single.php after the content part.

<ul>
<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>">Share with Facebook</a></li>
<li><a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>">Digg This Post</a></li>
<li><a href="http://twitter.com/home/?status=Reading <?php the_title(); ?> <?php bloginfo('home'); ?>/?p=<?php the_ID(); ?>">Tweet This Post</a></li>
<li><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>">Stumble This Post</a></li>
<li><a href="http://delicious.com/post?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>">Save on Delicious</a></li>
<li><a href="http://www.reddit.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>">Submit to Reddit</a></li>
</ul>

But if you like to use the plugin for Social Media then I recommend the following plugins:

Sociable: Automatically add links to your favorite social bookmarking sites on your posts, pages and in your RSS feed. I like this plugin as it is very easy to use and the most important thing is that you can choose from 99 different social bookmarking sites.

Recommended Reading:

WordPress Plugins: My Favorites: Here I have listed down some of my favorites plugins that I have been using for my various projects.

Leave a Reply

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