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

  1. American2020
    Posted 5 years ago #

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


  2. whiletrue
    Posted 5 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

  • Really Simple Share
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic