How to Add “Send Article to a Friend” Button in WordPress

Few months ago I’ve posted a complete way to Send Article to your friend using jQuery, yeah it’s quite long and recommended for advance user only. Today I will give you another quick way to send your post by email, this also help your site get high organic traffic by sending great and valuable tutorial to anyone’s friend.

As usual we’re going to implement the functionality using WordPress Shortcode, if you didn’t know shortcode yet please visit WordPress Codex to know more about.


Copy and paste this snippet into your functions.php of your current theme, if you don’t have functions.php yet, please create a new one.

How to use the shortcode?

Put this shortcode into your posts or pages

Template Tag

If ever you want to use the button in your theme .php file, use the code below.

If you wish to change the anchor text by using the shortcode, just edit the above shortcode to this

That’s it; hope you find this article useful

To view my old post that use jQuery, Click here Email this article to a friend.

by Ryan Sutana

  • Can I just say what a relief to seek out somebody who truly knows what theyre talking about on the internet. You definitely know how one can deliver a problem to light and make it important. Extra people must learn this and understand this side of the story. I cant believe youre no more widespread because you definitely have the gift.
    very good post, i definitely love this website, keep on it