Title: Title plugin conflict
Last modified: August 22, 2016

---

# Title plugin conflict

 *  [nppbc](https://wordpress.org/support/users/nppbc/)
 * (@nppbc)
 * [12 years ago](https://wordpress.org/support/topic/title-plugin-conflict/)
 * All-in-one Event is conflicting with this awesome plugin. What they have said
   is this,
    “@nppbc – Your sharing plugin is using the_title() function (which 
   includes HTML in the title if it exists), when it should be using the_title_attribute()
   function (which does NOT include HTML – it strips HTML from the title) to fetch
   the title of the post from WP. As such, your sharing plugin has a bug that the
   plugin author should fix.”
 * Can this be corrected?
 * [https://wordpress.org/plugins/simple-share-buttons-adder/](https://wordpress.org/plugins/simple-share-buttons-adder/)

Viewing 1 replies (of 1 total)

 *  [cefiar](https://wordpress.org/support/users/cefiar/)
 * (@cefiar)
 * [12 years ago](https://wordpress.org/support/topic/title-plugin-conflict/#post-5168604)
 * FWIW: Looking briefly through the code it’s using `get_the_title()` in two places,
   both of which probably should be replaced with `the_title_attribute()` assuming
   that the plugin runs in the loop.
 * If it doesn’t run in the loop, then you should really consider stripping HTML
   tags from get_the_title() using something like strip_tags() or the like.
 * They’re in the file **simple-share-buttons-adder.php** and appear on lines 701
   and 707.
 * Hope this helps.
 * BTW: Where this breaks most often is when the title gets used as a html tag attribute
   and it itself contains an attribute. As soon as the second quote is hit, the 
   html becomes invalid.

Viewing 1 replies (of 1 total)

The topic ‘Title plugin conflict’ is closed to new replies.

 * ![](https://ps.w.org/simple-share-buttons-adder/assets/icon-256x256.png?rev=2661516)
 * [Simple Share Buttons Adder](https://wordpress.org/plugins/simple-share-buttons-adder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-share-buttons-adder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-share-buttons-adder/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-share-buttons-adder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [cefiar](https://wordpress.org/support/users/cefiar/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/title-plugin-conflict/#post-5168604)
 * Status: not resolved