20

I have an image whose permalink is domain.com/books I would now like a page located at this permalink.

Is there a way to change the image's permalink?

Thanks

4 Answers 4

9

Yes!

  1. Go to your Media Library
  2. Find the Image
  3. Click Edit
  4. Locate the Permalink under the Title
  5. Click Edit
  6. Change the Permalink
  7. Click Update!

Edit

If for some reason you cannot Edit the Images' Permalink... you could:

  1. Delete Image
  2. Change your Pages' Permalink
  3. Re-Upload Image
13
  • 9
    Thank you, but when i go into edit mode for that item, the permalink is not editable (as it is usually for posts/pages)
    – kneidels
    Jul 20, 2016 at 21:42
  • Hmm are you using Wordpress.org or Wordpress.com?
    – ngearing
    Jul 20, 2016 at 23:27
  • Wordpress installation on my own domain/hosting (i guess that mean org)
    – kneidels
    Jul 20, 2016 at 23:39
  • That is odd. Have you tried disabling your Plugins and changing themes?
    – ngearing
    Jul 20, 2016 at 23:55
  • 1
    As a last resort option, you can adjust the post_title via the database for the image. I don't normally recommend this option, but in this case, it might be your only option. Using a tool like phpMyAdmin can help with this. I recommend taking note of the images ID (check the URL when editing the image - wp-admin/post.php?post=114&action=edit - ID is 114 in this example). Search your wp_posts table for that ID, change the post_title value to the desired slug.
    – Cole
    Jul 11, 2017 at 21:24
58
  1. Go to Media Library
  2. Find the Image
  3. Click Edit Image

  1. Click Edit more details (at bottom right, very easy to miss)

  1. Find the Screen Options (top right) and enable the Slug checkbox

  1. Scroll down to the slug box and change the slug to whatever you want.
  2. Click Update!
5
  • 2
    This worked for me since I couldn't edit the permalink but had no problem editing the slug.
    – furtive
    Nov 14, 2017 at 18:58
  • 5
    this is the correct answer, it works, the answer selected by OP does not. Please upvote. Mar 25, 2018 at 14:35
  • 1
    This is the correct method.
    – Pavak Paul
    Jul 12, 2021 at 8:53
  • 1
    This is the correct answer.
    – jbx
    Aug 2, 2021 at 11:07
  • 1
    Still works in 2021, thanks!
    – kero
    Nov 4, 2021 at 11:18
10

In Media Library, I noticed that when media file is not Attached to a page the permalink is not editable. When they are attached, permalink editing is permitted.

2
  • I was still able to edit the link when the media file is not attached to a page or post, just need to do a couple extra steps - see Devin's Answer
    – Will
    Jan 20, 2018 at 17:53
  • This works for me while other solutions do not
    – omerbp
    May 2, 2018 at 5:46
9

On the edit page, 1. click the screen options downward triangle in the upper right of the screen 2. Check "Slug" under Boxes. 3. Update 4. Scroll down to Slug box. 5. Type in what you want to call the link.

This doesn't change the link location. Just the link name, which is what I was trying to figure out since I didn't want it as the name of the file I uploaded.

1
  • 1
    Thank you very much for this! this also changes the post_name in the
    – Will
    Jan 20, 2018 at 17:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.