Skip to main content
9 events
when toggle format what by license comment
Aug 24, 2015 at 21:21 vote accept ptimson
Aug 22, 2015 at 17:32 comment added ptimson Thanks @Milo for your help, I've posted how I fixed below
Aug 22, 2015 at 17:32 answer added ptimson timeline score: 1
Aug 22, 2015 at 16:16 comment added Milo If you wanted to do that, I think conditionally disabling redirect_canonical is what you'd need to do. If you search around for that you might find something. The action is added in wp-includes/default-filters.php.
Aug 22, 2015 at 16:11 comment added ptimson Cheers @Milo that's what I needed to know :) I guess the hacky solution would be to hook into that and stop it guessing if URL begins with /members/blog
Aug 22, 2015 at 16:08 comment added Milo What's happening is that whenever WordPress encounters a 404, it tries to query for something close. You can see it in this function redirect_guess_404_permalink. It finds your blog page and redirects there. The simplest solution is to just add a page so it doesn't 404.
Aug 22, 2015 at 16:01 comment added ptimson No. I wrote this code a while ago so it's not best practice. But I normally catch it in template_direct and do a php include and turn 404 error off
Aug 22, 2015 at 15:58 comment added Milo is /members/blog a page?
Aug 22, 2015 at 15:51 history asked ptimson CC BY-SA 3.0