• Resolved Optic

    (@optic)


    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

    (@dglingren)

    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.