Rewrite CPT child page URL to support query var
Okay, after a lot of playing around, I found this: The regex it was matching (while skipping over my rule) was practice-area/(.+?)(?:/([0-9]+))?/?$ This had a $matches array of 2: parent-page/child-page and a number that follows that, which is blank since there isn’t one in the URL I was trying to build. Also the URL it … Read more