Συναγερμός στη Σπάρτη: Νεκρός από πυροβολισμό 22χρονος Ρομά
Νεκρός έπεσε από πυροβολισμό ένας 22χρονος Ρομά στη Σπάρτη το βράδυ της Τετάρτης και μεταφέρθηκε στο νοσοκομείο της πόλης. Εκεί…[21 Σεπτεμβρίου, 2023 - 00:10]
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()); } });