WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#47207 new defect (bug)

Specific custom permalink 404 on archive page

Reported by: briandd Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.2
Component: Permalinks Keywords:
Focuses: Cc:
PR Number:

Description

If we set a custom permalink of

/%year%/%monthnum%/%day%/%postname%/

archive pages will be

/2019/05/

If we want european/asian/african/southamerican D/M/Y date format

/%monthnum%/%year%/%postname%/

archive pages will be

/2019/05/

US format but doesn't matter, at least it works

but with this permalink:

/%day%/%monthnum%/%year%/%postname%/

archive pages (at least on archive widget) will be

/05/2019/

Which looks good

But returns 404 with default wp and theme and WP 5.1.1 or 5.2
tried to go to /2019/05/ but 404 too

Change History (1)

#1 @briandd
5 months ago

I have tried with 4.1 and the bug was already there

If we put %day% before %monthnum% and %year% it will always break

this is broken too:
/%monthnum%/%day%/%year%/%postname%/

But weird permalinks like

/%postname%/%day%/
/%postname%/%day%/%monthnum%/
/%postname%/%day%/%year%/
/%day%/%monthnum%/%postname%/
/%day%/%year%/%postname%/
/%day%/%monthnum%/%monthnum%/%postname%/

will give working archives

even /%day%/%year%/%monthnum%/%postname%/

Who's against D/M/Y and M/D/Y raise hands

Last edited 5 months ago by briandd (previous) (diff)
Note: See TracTickets for help on using tickets.