Support » Plugin: Click To Tweet » Bug In Code

  • Resolved Lab41



    I’m trying to integrate this plugin and having some issues and my dev said:

    “This Click to Tweet plugin doesn’t use a standard WordPress shortcode as it should. It is filtering the content of posts/pages using ‘the_content’ filter and then it does a preg_replace on the [tweet…] shortcode.

    So actually this plugin needs to follow WordPress conventions and use add_shortcode() to register the shortcode properly.

    I tried doing apply_filters() for ‘the_content’ on the body but it doesn’t work”

    Can you ask the plugin author or find a similar plugin that properly uses shortcodes?

    Any advice or help is appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ben Meredith


    Hey Lab41.

    My plugin was specifically rebuilt from this plugin to use the shortcode API. check it out at

    You can see if this does what your developer needs. Feel free to reach out to me in the support forums over there.

    Awesome! Going to try it now!

    Ben Meredith


    Keep in mind that the shortcode syntax is different from mine to this one, so you’ll have to replace all the shortcodes. There are some automatic ways to do it, but if there are not many, just doing it by hand is easiest.

    Looking good! It looks like your twitter icon is blurry though!

    Would be neat if you had a few settings:
    1) Set box width.
    2) Set box height.
    3) Set box border width.
    4) Change tweet text.
    5) Change tweet icon.

    Would make it awesome. (and if you had a little stats dashboard.) I know you can use, but it would be nice if it was embedded. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bug In Code’ is closed to new replies.