• Resolved Lab41

    (@lab41)


    Hi

    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!

    https://www.ads-software.com/plugins/click-to-tweet-by-todaymade/

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

    (@benmeredithgmailcom)

    Hey Lab41.

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

    https://www.ads-software.com/plugins/better-click-to-tweet/

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

    Thread Starter Lab41

    (@lab41)

    Awesome! Going to try it now!

    Ben Meredith

    (@benmeredithgmailcom)

    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.

    Thread Starter Lab41

    (@lab41)

    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 Bit.ly, 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.