Title: PHP code instead of shortcode?
Last modified: August 31, 2016

---

# PHP code instead of shortcode?

 *  [jeeni](https://wordpress.org/support/users/jeeni/)
 * (@jeeni)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-code-instead-of-shortcode-3/)
 * Hi there,
 * I need to put this in the footer of my site – is there a line of PHP code that
   I can use in place of the shortcode?
 * Thanks for this lovely plugin!
 * [https://wordpress.org/plugins/addthis-follow/](https://wordpress.org/plugins/addthis-follow/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Julka Grodel](https://wordpress.org/support/users/jgrodel/)
 * (@jgrodel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-code-instead-of-shortcode-3/#post-7449025)
 * Hi Jeeni.
 * Thanks for the kind words!
 * You can use a shortcode in PHP with the [do_shortcode()](https://developer.wordpress.org/reference/functions/do_shortcode/)
   function.
 * Another option is the [the_widget()](https://developer.wordpress.org/reference/functions/the_widget/)
   function. They’re about the same. Our [widget documentation](https://plugins.svn.wordpress.org/addthis-follow/trunk/documentation.widgets.md)
   has examples of how to use [the_widget()](https://developer.wordpress.org/reference/functions/the_widget/)
   in PHP.
 * Thanks,
    Julka

Viewing 1 replies (of 1 total)

The topic ‘PHP code instead of shortcode?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/addthis-follow_1ecaab.svg)
 * [WordPress Follow Buttons Plugin – AddThis](https://wordpress.org/plugins/addthis-follow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/addthis-follow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/addthis-follow/)
 * [Active Topics](https://wordpress.org/support/plugin/addthis-follow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/addthis-follow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/addthis-follow/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Julka Grodel](https://wordpress.org/support/users/jgrodel/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/php-code-instead-of-shortcode-3/#post-7449025)
 * Status: not resolved