WP Adding Strange Code to End of Permalink URLs (6 posts)

  1. alanpeto
    Posted 4 years ago #

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


    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!!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  3. alanpeto
    Posted 4 years ago #

    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.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  5. alanpeto
    Posted 4 years ago #

    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>
    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid="></script>

    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 :)

  6. Alan Mairson
    Posted 3 years ago #

    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: http://i.imgur.com/SPuV4.png

Topic Closed

This topic has been closed to new replies.

About this Topic