Site Overlay

Insert Social Media Submission Links In Your Theme Without A Plugin

Social Media
Social Media

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.

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.

Published By:

Author: sakinshrestha

Hello. My name is Sakin Shrestha, and I am a technology entrepreneur from Nepal. I am passionate about helping this sector grow, for many reasons. The technology sector creates jobs for many young Nepalis who would otherwise migrate to foreign countries. It lets Nepali professionals develop skills for a fast-changing global workplace, and compete at a high level with anyone, anywhere in the world. If it grows, it will provide a viable career option for many young Nepalis, and help us reap the benefits of a global economy.

1 thought on “Insert Social Media Submission Links In Your Theme Without A Plugin

  1. Pingback: Buy Facebook Fan

Comments are closed.