• Resolved Soccerwidow

    (@soccerwidow)


    Great plugin!

    Which PHP code do I need for adding the Facebook, Twitter, Google+ buttons automatically on the bottom of each post?

    I just don’t want two separate plugins for social sharing. I thought to add sth in single.php use and then display the social buttons on all articles. Content protection when needed manually.

    https://www.ads-software.com/extend/plugins/wplike2get/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Markus Drubba

    (@drumba)

    Yes you can. Use the do_shortcode() method of the WordPress core. For example:

    do_shortcode('[l2g name="Download this awesome file" id="999" facebook="true" twitter="true" gplusone="false"]')

    Thread Starter Soccerwidow

    (@soccerwidow)

    Thank you!

    This is the code I have now inserted. Works great ??

    <?php
    if (function_exists('wplike2get_shortcode')) {
    echo do_shortcode('[l2g]<br >');
    } else {
    	echo "";
    }
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: wpLike2Get] Insert code into single pages’ is closed to new replies.