Abnormal "-1" text in the navbar
-
Hi there, currently I’m learning to implement wpp_get_views() to display view count for each post. Following your wiki, I added this piece of code into theme functions file and modifying the display page:
if (function_exists('wpp_get_views')) echo wpp_get_views( get_the_ID() );
It displayed correctly view counter for each post. But since then my navbar always display text “-1” first (which I suspected a return value from the plugin) as you can see from this link.
What should I do now? I’m looking forward to your response, thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Abnormal "-1" text in the navbar’ is closed to new replies.