Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you replicate the problem using the default Twenty Fifteen theme with all plugins deactivated?

    Thread Starter intrepidweb

    (@intrepidweb)

    It looks like the problem exists for me because of how old my blog is. I would guess that WordPress, at some point, allowed attachments to be uploaded with identical “post_name” values.

    So I just spun up a new droplet with base WordPress install, no plugins, etc. I created two posts, then uploaded a file with the same filename to each (but different files). WordPress didn’t allow them to have the same post_name, and did not exhibit the problem. However, when I changed the post_name of both attachments to be the same thing – the problem occurred.

    So the problem is matching post_name values, something WordPress no longer allows – but apparently did at some point.

    Anyone know of any consequences to manually changing the “post_name” value for the offending images? I was going to do this manually in the database itself – would that cause any problems? Is the “post_name” field for attachments used for anything beyond a situation like this?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Attachment Page Showing Multiple Files, All With Same Name’ is closed to new replies.