Title: How add it on any PHP code?
Last modified: August 31, 2016

---

# How add it on any PHP code?

 *  Resolved [thegamin93](https://wordpress.org/support/users/thegamin93/)
 * (@thegamin93)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-add-it-on-any-php-code/)
 * Hi, i need to include this awesome plugin in any PHP custom page, how i can add
   it?
 * My theme have “Theme.php” code and i need to add the plugin, but if i put the
   shortcode doesn’t work, any can help me plz?
 * Thanks!!!
 * [https://wordpress.org/plugins/cresta-social-share-counter/](https://wordpress.org/plugins/cresta-social-share-counter/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-add-it-on-any-php-code/#post-7194741)
 * Hi thegamin93,
    Remember that this plugin works only on “individual pages” and
   not on pages with the loop (such as blog list, categories page, etc…).
 * Where you tried to insert the shortcode? In a widget?
 * Best Regards,
    CrestaProject
 *  Thread Starter [thegamin93](https://wordpress.org/support/users/thegamin93/)
 * (@thegamin93)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-add-it-on-any-php-code/#post-7194775)
 * Hi thanks for the help,
 * I try to insert on a post (single.php) before content like this -> [http://puu.sh/nPOEt/0ea25288b7.jpg](http://puu.sh/nPOEt/0ea25288b7.jpg)
   and the method to insert here is by a php code, not shortcode.
 * Thanks.
 *  Plugin Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-add-it-on-any-php-code/#post-7194796)
 * Hi thegamin93,
    but keep in mind that it will only be visible in posts and single
   pages. You can use this PHP code:
 *     ```
       <?php if (function_exists( 'add_social_button_in_content' )) { echo add_social_button_in_content(); } ?>
       ```
   
 * Best Regards,
    CrestaProject
 *  Thread Starter [thegamin93](https://wordpress.org/support/users/thegamin93/)
 * (@thegamin93)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-add-it-on-any-php-code/#post-7194851)
 * Thanks man! Works perfectly!!!
 * PRO version is only one payment?
 * Thanks!!
 *  Plugin Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-add-it-on-any-php-code/#post-7194856)
 * Perfect 🙂
 * Regarding the PRO version, once purchased, the plugin is yours forever.
    Instead,
   the license key can be renewed annually (not mandatory) and serves to receive
   plugin updates. If, after a year, you decide to not renew the license key, no
   problem. You can continue tu use the plugin forever but you will no longer receive
   plugin updates.
 * CrestaProject

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How add it on any PHP code?’ is closed to new replies.

 * ![](https://ps.w.org/cresta-social-share-counter/assets/icon-256x256.png?rev=
   2467359)
 * [Cresta Social Share Counter](https://wordpress.org/plugins/cresta-social-share-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cresta-social-share-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cresta-social-share-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/cresta-social-share-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cresta-social-share-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cresta-social-share-counter/reviews/)

## Tags

 * [php code](https://wordpress.org/support/topic-tag/php-code/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 5 replies
 * 2 participants
 * Last reply from: [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/how-add-it-on-any-php-code/#post-7194856)
 * Status: resolved