How to add a new meta key and assign timestamp to posts
A very simplistic method of achieving this would be as follows; add_action(‘template_redirect’, ‘recently_read’); function recently_read(){ global $post; //only run this function for the posts post_type if ( !is_single() ) return; //get the current time in the format of: 2013-02-22 11:55:51 $timestamp = current_time(‘mysql’); //add the $timestamp variable to the meta_key for this post update_post_meta($post->ID, ‘reading_this’, … Read more