wpp_get_views($post->ID); return -1 value
-
I’m using a plugin that accepts shortcodes and attaches them to post meta, i added
function display_views() { echo wpp_get_views($post->ID); } add_shortcode ('get_view_count', 'display_views');
to functions.php, and [get_view_count] shows -1 value on all posts.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wpp_get_views($post->ID); return -1 value’ is closed to new replies.