Views count with time limit per IP
A very basic solution would be to use the Transients API, an example… function setPostViews($postID) { $user_ip = $_SERVER[‘REMOTE_ADDR’]; //retrieve the current IP address of the visitor $key = $user_ip . ‘x’ . $postID; //combine post ID & IP to form unique key $value = array($user_ip, $postID); // store post ID & IP as separate … Read more