Custom page template query_vars April 26, 2022 by Tarik Billa When creating an internal rewrite rule, $1 should instead be $matches[1].