• alanpeto

    (@alanpeto)


    Out of the blue, WordPress is now adding some weird code at the end of my permalink URLs:

    https://www.alanpeto.com/archive/2010/give-yourself-a-new-new-years-resolutions-list/#.Tta692Mk6nA

    It always has a pound sign # and a dot after it followed by a alphanumeric number which changes every time you refresh.

    Does anyone have any idea of what this is or how to fix? I checked my permalink settings and they are still correct (/%category%/%year%/%postname%/), although trying any of the regular formats results in the exact same ‘code’ being added to the end of the URL.

    Thank you so much in advance!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    (@esmi)

    It’s a rogue plugin. Try deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin.

    Thread Starter alanpeto

    (@alanpeto)

    Thank you esmi. I deactivated all plugins, but it still persists. What’s weird is the actual hyperlinks show correctly, it is only when you go to the article/page it then adds the code at the end.

    esmi

    (@esmi)

    It’s definitely a plugin issue. I’ve seen it a number of times before. Try resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter alanpeto

    (@alanpeto)

    Thanks esmi! OK, found out what it was. I had manually put in the addthis code and this was the error. Here was the code in my single.php file minus my id:

    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_tweet"></a>
    <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
    <a class="addthis_counter addthis_pill_style"></a>
    <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
    </div>
    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
    <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid="></script>
    </div>

    Thinking it had to do with the ‘data_track_addressbar’ feature they have (where you can see when someone copies and pastes the URL instead of using a share button. Thank you again for your help, you helped me look in the right direction ??

    The other way to fix (courtesy of the AddThis tech team):

    That code is added by address bar tracking. You can disable it by going to the advanced tab of the AddThis settings page and unchecking the Track address bar shares checkbox: https://i.imgur.com/SPuV4.png

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Adding Strange Code to End of Permalink URLs’ is closed to new replies.