WordPress.org

Forums

Really Simple Share
[resolved] [Plugin: Really simple Facebook Twitter share buttons] Includin in PHP (2 posts)

  1. American2020
    Member
    Posted 3 years ago #

    Is it possible to include some code in PHP just where we want the plugin to show?

    http://wordpress.org/extend/plugins/really-simple-facebook-twitter-share-buttons/

  2. whiletrue
    Member
    Plugin Author

    Posted 3 years ago #

    Hi American2020,
    we released some minutes ago the new version 1.5.0 of the plugin, adding the possibility to use the "really_simple_share_publish" PHP function to publish the buttons inside the PHP code, for themes and other plugins.

    We also updated the FAQ for easy reference:

    = Is it possible to show the buttons anywhere inside my theme, using a PHP function? =
    Yes, you can call the really_simple_share_publish($link='', $title='') PHP function, passing it the link and the title used by the buttons. You shouldn't leave the parameters blank, unless the code is put inside the WP loop.
    For example, use this code to create buttons linking to the website home page:
    echo really_simple_share_publish(get_bloginfo('url'), get_bloginfo('name'));

    Please let us know if it fits your needs!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic