WordPress.org

Ready to get started?Download WordPress

Forums

Twitget
[resolved] Shortcode Bug (5 posts)

  1. mwcavender
    Member
    Posted 1 year ago #

    First of all, thanks for the plug-in.

    It appears that your shortcode callback is echoing instead of returning a string. Here's the fix I have in place: http://pastebin.com/Zi0ZGpxS

    I also wanted the ability to set the max characters shown per tweet. I just thought I'd share in case others want the same.

    http://wordpress.org/extend/plugins/twitget/

  2. Boštjan Cigan
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks, I'll update it in the next version!

    Cheers.

  3. Boštjan Cigan
    Member
    Plugin Author

    Posted 1 year ago #

    Just one question, how are you handling truncated URLs? Are you just cutting out the text?

  4. mwcavender
    Member
    Posted 1 year ago #

    I modified the process_links() method to not link if ... appeared, but I didn't like truncated URLs even if they weren't linked. I ended up just removing truncated linkable's even though the output would be shorter than the characters in the settings.

    http://pastebin.com/NFpdbyXD

  5. Boštjan Cigan
    Member
    Plugin Author

    Posted 1 year ago #

    Already added changes to dev version. Not publicly available yet, but marking this thread as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic