fixes WP issues on virtual-pages-with-templates