Δωμάτια θυμού: Η νέα μόδα που σαρώνει -Μπαίνεις μέσα και τα σπας όλα [εικόνα]
Στην Ιαπωνία πέρυσι, ένα ξενοδοχείο λάνσαρε δωμάτια στα οποία μπορούσε κανείς να μείνει μόνο για να κλάψει. Μόνοι, απομονωμένοι από…[24 Φεβρουαρίου, 2016 - 14:15]
function track_post_views($post_id) { if ( !is_single() ) return; if ( empty($post_id) ) { global $post; $post_id = $post->ID; } $count_key = 'post_views_count'; $count = get_post_meta($post_id, $count_key, true); if ($count == '') { add_post_meta($post_id, $count_key, '1'); } else { $count++; update_post_meta($post_id, $count_key, $count); } } add_action('wp_head', function() { if (is_single()) { track_post_views(get_the_ID()); } });