Is it advisable to use `add_rewrite_rule()` to serve a custom page?
Try instead using the template_redirect hook. Here I have a blogpost on using that approach: http://www.tomjn.com/386/content-without-posts/ I’ve had no issues with the admin toolbar using this method. It includes a helper class: <?php /** * A helper class to implement arbitrary content at arbitrary URLs without a supporting post or page. * Inherit from this … Read more