Title: PHP Shortcode
Last modified: September 1, 2016

---

# PHP Shortcode

 *  Resolved [JP](https://wordpress.org/support/users/jpress/)
 * (@jpress)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-shortcode-15/)
 * Hello,
 * I’ve recently installed the BestWebSoft Google +1 and Facebook Like plugins. 
   I wanted to insert them in specific locations on my various sites and came across
   [this post](https://wordpress.org/support/topic/is-there-any-php-shortcode-you-can-use-for-the-homepage)
   where a nice solution is offered for the Google +1 button. Essentially, the shortcode
   could be inserted into a PHP/HTML template file and the all of the boxes in the“
   Show Button” area could be unchecked so that only one instance of the button 
   would appear. Is there a similar solution for the Facebook Like button plugin?
 * The shortcode certainly works fine:
 * `<?php echo do_shortcode('[fb_button]'); ?>`
 * However, I’m not able to hide the first instance of the button since the FB plugin
   doesn’t seem to offer the same “Show Button” options (i.e., there’s nothing to
   uncheck). As a temporary measure, I’ve hidden one of the buttons with CSS:
 * `.fcbk_share:first-of-type { display: none; }`
 * However, this isn’t ideal since the button will still need to load twice. It 
   would be much better if I could simply turn off the display options for the FB
   button (as was done for the G+1 button) so that the PHP insertion would be the
   only instance displayed.
 * Any suggestions you have would be greatly appreciated.
 * Thank you,
    JP
 * [https://wordpress.org/plugins/facebook-button-plugin/](https://wordpress.org/plugins/facebook-button-plugin/)

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

 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-shortcode-15/#post-7546438)
 * Hi,
 * If we understand you correctly, it is necessary to enable “Facebook buttons position”
   option as “Shortcode” ([http://i.prntscr.com/60b3103cc54c4de2b97b81fa2fdb27c1.png](http://i.prntscr.com/60b3103cc54c4de2b97b81fa2fdb27c1.png)).
   This way selected buttons won’t be added to the content automatically but show
   up via the shortcode (which is specified in your template).
 * Sincerely,
    BestWebSoft Support Team
 *  Thread Starter [JP](https://wordpress.org/support/users/jpress/)
 * (@jpress)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-shortcode-15/#post-7546442)
 * Ah yes of course. You understood the issue correctly and that is a very simple
   and clear solution. Thank you!
 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-shortcode-15/#post-7546468)
 * Hi,
 * We are glad that everything is fine now. Feel free to contact our support team
   with any questions in future. For more convenience, you can do it via our Help
   Center ([http://support.bestwebsoft.com/](http://support.bestwebsoft.com/)) in
   order to receive a faster reply.
 * Have a great day!
 * Sincerely,
    BestWebSoft Support Team

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

The topic ‘PHP Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/facebook-button-plugin/assets/icon-128x128.gif?rev=2598550)
 * [BestWebSoft's Like & Share - Posts, Pages and Widget Social Extension plugin for WordPress](https://wordpress.org/plugins/facebook-button-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-button-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-button-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-button-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-button-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-button-plugin/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/php-shortcode-15/#post-7546468)
 * Status: resolved