• Hi,
    HTML mode, I put <img class=”alignright” title=”” src=”https://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=”https://xxx/wp-content/uploads/test1.jpg” alt=”” width=”150″ height=”215″ />. Any one know why that happens? Any setting I need to change?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator cubecolour

    (@numeeja)

    that happens when a file with the original name already exists

    Thread Starter theycallmegosu1982

    (@theycallmegosu1982)

    Can I prevent this?

    don’t upload a file with the same name.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wordpress automatically generates a new url for my image’ is closed to new replies.