WordPress.org

Ready to get started?Download WordPress

Forums

Simple Social - Sharing Widgets & Icons
Text for Tweet should not be url encoded (3 posts)

  1. Olivier
    Member
    Posted 3 years ago #

    With the current version of the plugin, the tweet will look like this:
    This+is+my+nice+post.

    To fix this, a special title has to be generated for Twitter sharing, unless there is a way of telling Twitter what to do with the url encoded title.

    http://wordpress.org/extend/plugins/simple-social-sharing-widgets-icons/

  2. tracysbooknook
    Member
    Posted 3 years ago #


  3. tracysbooknook
    Member
    Posted 3 years ago #

    I think I've solved the problem. There is a code error in Simple Social. Here's how you fix it.

    1. Go to your plug-in editor and load the following file:

    simple-social-sharing-widgets-icons/simple-social.php

    2. Then go to line 12 and change the following statement from this:

    $simplesocial_title = urlencode(get_the_title($post->ID) )

    to this:

    $simplesocial_title = urldecode(get_the_title($post->ID) )

    3. Update the file and you're done

    *Note Thanks to Google I found out that the command urlENcode replaces spaces, quotes, etc., with +'s and %xx's. The command you need to get rid of that stuff is urlDEcode.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic