Support » Theme: MesoColumn » Post Views Counter not working

  • Resolved nikhilchaurasia

    (@nikhilchaurasia)


    Hi,

    I am trying to show “post views” by using my favorite plugin “Post Views Counter”. But its not working. I have also tried installing others, but no gain. Kindly help me out.

    Thanks,
    Nikhil

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Richie KS

    (@rkcorp)

    this is plugin support question not theme. the theme had built in post view count tho. try add this to child theme functions.php or wp-content/meso-custom-functions.php if had one.

    function meso_show_post_view() {
    global $post;
    $post_view = dez_get_wp_post_view($post->ID);
    if($post_view) {
    echo '<span class="post-view"><i class="fa fa-eye"></i>';
    echo $post_view . ' views';
    echo '</span>';
    }
    }
    add_action('meso_after_post_meta','meso_show_post_view');

    Thanks a ton Richie,

    Your quick response resolved this.
    I loved the inbuilt “post views counter” and now using the same. 🙂


    Nikhil

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Views Counter not working’ is closed to new replies.