WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 4 months ago

#37435 new defect (bug)

Conflicting permalinks with attachment and category of same name

Reported by: Spidergirl1979 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.3
Component: Permalinks Keywords:
Focuses: Cc:
PR Number:

Description

On my company site, I created a category called Announcements and uploaded an image called Announcements.png Both had permalinks of http://MYDOMAIN/announcements When I tried to navigate to http://MYDOMAIN/announcements I was expecting to see a listing of all the posts in that category, but instead the site was showing the image.

I tried with different themes, deactivated all plugins but the issue remained. At the time I didn't realize there was an attachment with the same name as my category. Once I figured that out, I simply changed the attachment name and updated the permalink and everything worked properly.

I have a custom permalink structure: /%category%/%postname% Category Base . and Tag base of keyword

Change History (1)

Note: See TracTickets for help on using tickets.