WordPress.org

Ready to get started?Download WordPress

Forums

WordPress 3.2 Images Show Weird Query String? (6 posts)

  1. rhythmdoctor
    Member
    Posted 3 years ago #

    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-200x133.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

  2. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    What Theme are you using?

    What Plugins do you have active?

  3. rhythmdoctor
    Member
    Posted 3 years ago #

    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.

  4. Philip Arthur Moore
    Volunteer Moderator
    Posted 2 years ago #

    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.

  5. veggera
    Member
    Posted 2 years ago #

    @ Philip Arthur Moore

    Works!!

  6. rhythmdoctor
    Member
    Posted 2 years ago #

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic