• There is no way to edit a media pemalink. If you upload an image and it creates a pemalink and you later want to create a post or page with the same permalink you can not change the permalink on the media file.

    I figured out how to do it but it involves editing the database.

    Tools needed: phpMyAdmin, FTP program like filezilla

    Steps

    1. Look at wp-config.php. Find the line that says

    define(‘DB_NAME’, ‘databasename’);

    2. Write it down.

    3. Using phpMyAdmin export a copy of the database.

    4. Using phpMyAdmin find the record in the table wp_posts that has a post_name field equal to the pemalink.

    5. Edit this record and change the post_name field to the new permalink.

    All done!!!

    • This topic was modified 7 years, 8 months ago by digitalwiz.
    • This topic was modified 7 years, 8 months ago by bdbrown.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How To Edit Media Pemalinks’ is closed to new replies.