Why is add_rewrite_endpoint incompatible with /%category%/%postname%/ permalink structure?
Why doesn’t it work? I’m not sure. That particular pattern is the same as a parent/child page request, WordPress has to do some extra queries to determine if a post exists by that name, or if it’s a page. Why this breaks when you add an endpoint, I haven’t delved into the code to determine. … Read more