ADD “SEND ARTICLE TO A FRIEND” BUTTON IN WORDPRESS – Example

0 169

PHP

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

You might also like More from author

Leave A Reply

Your email address will not be published.