Title: [Plugin: Sharebar] Undefined Variable
Last modified: August 20, 2016

---

# [Plugin: Sharebar] Undefined Variable

 *  [chryton](https://wordpress.org/support/users/chryton/)
 * (@chryton)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-sharebar-undefined-variable/)
 * Trying to use this on a custom post type and the bars work in automatic but when
   I put it onto the template file it breaks. Only the vertical works.
    This in 
   my template: `<?php sharebar_horizontal(); ?>`
 * Breeds this:
 * > Undefined variable: str in /var/www/pope/wp-content/plugins/sharebar/sharebar.
   > php on line 100
 * I would rather have the bar than have to call in each inidividually, which is
   what I am now doing.
 * [http://wordpress.org/extend/plugins/sharebar/](http://wordpress.org/extend/plugins/sharebar/)

The topic ‘[Plugin: Sharebar] Undefined Variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sharebar.svg)
 * [Sharebar](https://wordpress.org/plugins/sharebar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sharebar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sharebar/)
 * [Active Topics](https://wordpress.org/support/plugin/sharebar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sharebar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sharebar/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [chryton](https://wordpress.org/support/users/chryton/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-sharebar-undefined-variable/)
 * Status: not resolved