how to add view in echo code
-
hei how to add <?php if(function_exists(‘the_views’)) { the_views(); } ?> in code like this…
=========================================================================================
if (!function_exists(‘mh_magazine_lite_post_meta’)) {function mh_magazine_lite_post_meta() {
echo ‘<p class=”mh-meta entry-meta”>’ . “\n”;
echo ‘<span class=”entry-meta-date updated”><i class=”fa fa-clock-o”></i>‘ . get_the_date() . ‘</span>’ . “\n”;
echo ‘<span class=”entry-meta-view”>I want to display that View Count here!</span>’ . “\n”;
echo ‘</p>’ . “\n”;
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘how to add view in echo code’ is closed to new replies.