Plugin still works, but there is bug, replace the function with this.
function update_views($post_id) {
global $wpdb;
$p2_table = $wpdb->prefix.unique_p2_table();
$views = get_total_views($post_id) + 1;
if (get_total_views($post_id) == 0)
insert_views($views, $post_id);
$result = $wpdb->query("UPDATE $p2_table SET view = $views WHERE post_id = '$post_id' AND ip_addres = '".$_SERVER['REMOTE_ADDR']."'");
return ($result);
}
https://www.ads-software.com/plugins/unique-post-view-conter/
]]>Hey, thanks for this awesome plugin. I followed the easy installation instructions, but for some reason the count on each post is stuck to 1. I’m using total_views and every time I reload an entry page, It should increase the number by 1, right?
I don’t know what I’m doing wrong.
Thanks in advance.
https://www.ads-software.com/plugins/unique-post-view-conter/
]]>Great plugin. I just wondered how easy it would be to place the unique views per post/page into the wordpress loop – so when all posts are listed it shows each one’s unique views.
https://www.ads-software.com/plugins/unique-post-view-conter/
]]>