Title: calling a plugin in a php sidebar
Last modified: August 19, 2016

---

# calling a plugin in a php sidebar

 *  [mmmmdave](https://wordpress.org/support/users/mmmmdave/)
 * (@mmmmdave)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/calling-a-plugin-in-a-php-sidebar/)
 * Hi everybody,
 * I’ve built a sidebar template in PHP. I want to have that sidebar call the plugin“
   easy sign up.” If I were adding this plugin to the main contents of a page, I
   would just call it with the code [easy_sign_up]. But that doesn’t work in my 
   php sidebar. What code should I use?
 * Thanks!
 * Dave

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

 *  [Edward Caissie](https://wordpress.org/support/users/cais/)
 * (@cais)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/calling-a-plugin-in-a-php-sidebar/#post-1529511)
 * The “Easy Sign Up” plugin may be adaptable for use in this function: [http://wordpress.org/search/the_widget](http://wordpress.org/search/the_widget)…
 *  Thread Starter [mmmmdave](https://wordpress.org/support/users/mmmmdave/)
 * (@mmmmdave)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/calling-a-plugin-in-a-php-sidebar/#post-1529536)
 * Umm, not sure how that helps. I need to call a plugin using PHP, not the shortcut
   text. Any clues?
 *  [Edward Caissie](https://wordpress.org/support/users/cais/)
 * (@cais)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/calling-a-plugin-in-a-php-sidebar/#post-1529547)
 * Looking at the code to the plugin it does not lend itself well to being used 
   via the_widget() function. Sorry for the confusion.
 *  Thread Starter [mmmmdave](https://wordpress.org/support/users/mmmmdave/)
 * (@mmmmdave)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/calling-a-plugin-in-a-php-sidebar/#post-1529561)
 * Does anybody else have any ideas for this one? Surely plugins have been used 
   in themes before…
 *  Thread Starter [mmmmdave](https://wordpress.org/support/users/mmmmdave/)
 * (@mmmmdave)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/calling-a-plugin-in-a-php-sidebar/#post-1529562)
 * Found the solution here:
 * [http://wp-cms.com/template-development/inserting-wordpress-shortcode-outside-the-loop-in-a-template/](http://wp-cms.com/template-development/inserting-wordpress-shortcode-outside-the-loop-in-a-template/)
 * <?php echo do_shortcode(‘[easy_sign_up title=”title text”]’); ?>
 *  [Pagelift](https://wordpress.org/support/users/pagelift/)
 * (@pagelift)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/calling-a-plugin-in-a-php-sidebar/#post-1529841)
 * @ mmmmdave, that worked perfectly.
 * Thank you for coming back and sharing your answer, that’s a good habit 🙂

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

The topic ‘calling a plugin in a php sidebar’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Pagelift](https://wordpress.org/support/users/pagelift/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/calling-a-plugin-in-a-php-sidebar/#post-1529841)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
