function the_view_count($post_id = '')
{
    if ($post_id == '') {
        $post_id = get_the_ID();
    }
    echo get_view_count($post_id);
}
Esempio n. 2
0
                infowindow.setContent('<div><strong>' + place.name + '</strong><br>' + address);
                infowindow.open(map, marker);
            });
}

google.maps.event.addDomListener(window, 'load', initialize);

});



</script>

<?php 
    get_view_count($row->id, 'detail');
    ?>

<div class="row">

    <!-- Gallery , DETAILES DESCRIPTION-->

    <div class="col-md-9">

        <div class="detail-title"><i class="fa fa-home fa-4"></i>&nbsp;<?php 
    echo $estate_title;
    ?>
</div>


function get_view_count_shortcode_fn($atts)
{
    return get_view_count($atts['video_id']);
}