Example #1
0
						<h2 class="post-title"><?php 
    the_title();
    ?>
</h2>
						<div class="row meta-info">
							<div class="col-sm-6 col-md-3 info"><span><i class="icon-clock-circled"></i><?php 
    the_date('j F Y', '', '', true);
    ?>
</span></div>
							<div class="col-sm-6 col-md-3 info"><span><i class="icon-comment"></i><?php 
    comments_number(__('No Comments', 'Krypton'), __('1 Comment', 'Krypton'), __('% Comments', 'Krypton'));
    ?>
</span></div>
							<div class="col-sm-6 col-md-3 info"><span><i class="icon-eye-5"></i><?php 
    echo dt_get_post_views(get_the_ID());
    ?>
</span></div>
							<?php 
    if (has_category()) {
        ?>
							<div class="col-sm-6 col-md-3 info"><span><i class="icon-tags"></i><?php 
        the_category("<br />");
        ?>
</span></div>
							<?php 
    }
    //if (has_category())
    ?>
						</div>
function dt_posts_custom_column_views($column_name, $id)
{
    if ($column_name === 'post_views') {
        echo dt_get_post_views(get_the_ID());
    }
}