Title: Bulk update attachment permalinks?
Last modified: August 17, 2017

---

# Bulk update attachment permalinks?

 *  Resolved [Optic](https://wordpress.org/support/users/optic/)
 * (@optic)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/bulk-update-attachment-permalinks/)
 * Hello David,
 * Thank you for your assistance last time in implementing the feature to add a 
   variable for incrementing numbers in the Bulk updater.
 * I was wondering if there was a way to bulk update media permalinks?
 * I have my WP permalinks set to include the page title (which I imagine many people
   do)
 * With this permalink setting, the title of the media is automatically appended
   in the attachment permalink.
 * My dilemma is because I have set a parent page for my attachments, the permalink
   of the parent page is also included in the complete attachment permalink, so 
   I have duplicate keywords stemming from and a very long attachment permalink.
 * So I was wondering if it is possible to bulk update permalinks ? e.g. the same
   permalink you can modify when you view the attachement page in the dashboard.
 * I want to take this approach because I need to keep the media title and actual
   file name unique whilst keeping the attachment permalink tidy.

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bulk-update-attachment-permalinks/#post-9429465)
 * Thanks for your question and for your patience.
 * I did some research and discovered a few interesting facts:
    1. When an item is attached to a page/post you can edit the last part of the permalink
       but not the “parent” part.
    2. When an item is unattached you cannot alter the permalink on the WordPress Media/
       Edit Media screen.
    3. The part of the permalink you **CAN** edit is the “Name/Slug” value of the item.
       Using MLA you can edit this value in the Media/Assistant Quick Edit area, even
       for unattached items.
    4. You cannot omit the “parent” part of the URL for attached items. If you do you
       get a “404 page not found” error.
 * There is probably some way around the last, fatal, discovery by writing code 
   to alter the WordPress URL rewrite logic. I have never looked into this part 
   of WordPress.
 * So, the short answer is no, there is no useful way to remove the “parent” part
   of attached item permalinks. I regret the news is not better, but I am marking
   this topic resolved simply because the question has been answered. Thanks for
   your understanding and for your interest in the plugin.

Viewing 1 replies (of 1 total)

The topic ‘Bulk update attachment permalinks?’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/bulk-update-attachment-permalinks/#post-9429465)
 * Status: resolved