" title="<?php printf(__('%s', 'max-magazine'), the_title_attribute('echo=0')); ?> " rel="bookmark"> <?php echo short_title($get_the_ID); ?> </a> </h2> <div class="post-meta" > <span class='views'> <?php echo '<strong>' . get_PostViews(get_the_ID()), '</strong> Visualizzazioni' . ''; ?> </span> </div> </div><!--right--> </div><!--post image--> </div> <?php } } ?> <?php wp_reset_postdata(); // reset the query ?>
function post_custom_column_views($column_name, $id) { if ($column_name === 'post_views') { // Display the Post View Count of the current post. // get_the_ID() - Returns the numeric ID of the current post. echo get_PostViews(get_the_ID()); } }
?> </span> <!--/DATE --> <!--VIEWS --> <span class='views' style='margin-top:1px'><?php if (function_exists('the_views')) { the_views(); } ?> </span> <span class='views' style='margin-top:1px'> <?php echo '<strong>' . get_PostViews(get_the_ID()), '</strong> Click' . ''; ?> </span> <!--/VIEWS --> <!--RATING --> <span class='rating'> <?php if (function_exists('the_ratings')) { the_ratings(); } ?> </span>