Stats on custom pages
-
Hello,
I need to render a customized page. Here some demo code:
(…)
function render_custom_page() {
if (get_query_var(‘custom_page’)) {
echo ‘Test’;
exit();
}
}
add_action(‘template_redirect’, ‘render_custom_page’);When I land on mysite/custom-page/ the page is rendered correctly but the statistics are recording a visit on the homepage. How can I fix this? Should I call some API?
Thank you
Andrea
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Stats on custom pages’ is closed to new replies.