“How do I add a page counter in WordPress?”
I'm using a custom number field (generated by Jet Engine plugin) to track the number of times a page was loaded. On my functions.php file I am using this code: $count = get_post_meta("706", 'counter', true ); if(!is_admin() && !current_user_can('administrator')){ $count++;…