WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. theycallmegosu1982
    Member
    Posted 2 years ago #

    Hi,
    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
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    that happens when a file with the original name already exists

  3. theycallmegosu1982
    Member
    Posted 2 years ago #

    Can I prevent this?

  4. fonglh
    Member
    Posted 2 years ago #

    don't upload a file with the same name.

  5. Hema Latha
    Member
    Posted 2 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

Tags

No tags yet.