Title: Shortcode Bug
Last modified: August 21, 2016

---

# Shortcode Bug

 *  Resolved [mwcavender](https://wordpress.org/support/users/mwcavender/)
 * (@mwcavender)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/shortcode-bug-3/)
 * 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](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/](http://wordpress.org/extend/plugins/twitget/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Anonymous User 9905372
 * (@anonymized-9905372)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/shortcode-bug-3/#post-3840083)
 * Thanks, I’ll update it in the next version!
 * Cheers.
 *  Anonymous User 9905372
 * (@anonymized-9905372)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/shortcode-bug-3/#post-3840193)
 * Just one question, how are you handling truncated URLs? Are you just cutting 
   out the text?
 *  Thread Starter [mwcavender](https://wordpress.org/support/users/mwcavender/)
 * (@mwcavender)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/shortcode-bug-3/#post-3840197)
 * 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](http://pastebin.com/NFpdbyXD)
 *  Anonymous User 9905372
 * (@anonymized-9905372)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/shortcode-bug-3/#post-3840211)
 * Already added changes to dev version. Not publicly available yet, but marking
   this thread as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcode Bug’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: Anonymous User 9905372
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/shortcode-bug-3/#post-3840211)
 * Status: resolved