WordPress.org

Ready to get started?Download WordPress

Forums

Tweetily - Tweet Your Posts Automatically!
[resolved] apostrophes not rendering properly (3 posts)

  1. nickpalm
    Member
    Posted 11 months ago #

    Hi there...

    First off, I love the plugin, but I do have one issue and that is with apostrophes in my post titles being tweeted as '

    Any fixes for that?

    You can see the problem on my twitter account---->

    https://twitter.com/LOLCAROUSEL

    <p>friend said "sorry I changed your background", I ain't even mad - http://t.co/s4ErdrH84n #lol #follow4follow</p>— LOL CAROUSEL (@LOLCAROUSEL) August 9, 2013

    <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

    Thanks!

    http://wordpress.org/plugins/tweetily-tweet-wordpress-posts-automatically/

  2. nickpalm
    Member
    Posted 11 months ago #

    Well, the tweet didn't embed, but check out the twitter feed :)

  3. nickpalm
    Member
    Posted 4 months ago #

    Finally figured this out. Added this to the top-core.php and now it renders punctuation correctly. Yay!

    $title = preg_replace('/\s\s+/', ' ', $title);
    $title = str_replace(''', "'", $title);
    $title = str_replace('&quot;', '"', $title);

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.