• Ever since updating to 3.2, all my post images and thumbnails now have a querey string after them, specifically, “?5f2860”. For example – http://www.reelseo.com/wp-content/uploads/2011/07/mobile-online-video-200×133.jpg?5f2860

    Is there anyway to remove this or code it into the theme so that it doesnt have the querey string? Currently, my code is like this.

    <?php
    $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '', '' );
    if ( has_post_thumbnail($post->ID) ) {
    //echo '<link rel="image_src" href="' . $src[0]. '" />';
    }

    And is there any idea as to why this might be happening or if this was part of 3.2 to add this to all images?

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • What Theme are you using?

    What Plugins do you have active?

    Thread Starter rhythmdoctor

    (@rhythmdoctor)

    Well a custom theme that I built and a lot of plugins but none added since upgrading… IE – it was working well with all the I have right before upgrading.

    Philip Arthur Moore

    (@philiparthurmoore)

    Coming in on this super late but if you’re using W3 Total Cache that may be the culprit. There’s a setting under Browser Cache → General that says Prevent caching of objects after settings change → Whenever settings are changed, a new query string will be generated and appended to objects allowing the new policy to be applied. Disable that (if you’re using the plugin) and those query strings will be dropped on static resources like .jpg and .png files.

    @ Philip Arthur Moore

    Works!!

    Thread Starter rhythmdoctor

    (@rhythmdoctor)

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress 3.2 Images Show Weird Query String?’ is closed to new replies.