wordpress automatically generates a new url for my image (5 posts)

  1. theycallmegosu1982
    Posted 4 years ago #

    HTML mode, I put <img class="alignright" title="" src="http://xxx/wp-content/themes/xxx/images/test.jpg" alt="" width="150" height="215" />. However, each time I update it, wordpress automatically regenerates a new url to <img class="alignright" title="" src="http://xxx/wp-content/uploads/test1.jpg" alt="" width="150" height="215" />. Any one know why that happens? Any setting I need to change?

  2. cubecolour
    Posted 4 years ago #

    that happens when a file with the original name already exists

  3. theycallmegosu1982
    Posted 4 years ago #

    Can I prevent this?

  4. fonglh
    Posted 4 years ago #

    don't upload a file with the same name.

  5. Hema Latha
    Posted 4 years ago #

    If you want the original image to be updated,

    1. Upload the new image,
    2. Do not change the html code in the post
    3. Delete the original image in /wp-content/uploads
    4. Rename the new image in /wp-content/uploads to the original name

    eg. here would be to test.jpg
    There should not be any test1.jpg in your uploads folder.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.