Custom 404 stops working when using /%category%/%postname%/ as permalink structure
|Reported by:||Huvet||Owned by:||ryan|
|Severity:||normal||Keywords:||404 category bg|has-patch bg|dev-feedback|
When setting the permalink structure to /%category%/%postname%/ my custom 404 stops working and takes me to the archive page instead.
I talked to the very helpful ringmaster in the IRC-channel and he concluded:
<ringmaster> Huvet, it's doing that because it's matching the invalid name against the category-based permalink structure and failing to find a match. But wp_query is still reporting is_category for the query, so it forwards you to that template. Nice.