Support » Plugin: Post Views Counter » How to insert manual code on single.php

  • Thanks for your plugin. Great!

    can you help me, i want manual insert to single.php script not use [shortcode] because in single.php not support shortcode. i need code php. thanks you very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • freehzw

    (@notebook-driver)

    <?php 
      if( function_exists('pvc_get_post_views') ) echo pvc_get_post_views( $post->ID); 
    ?>

    Hello,
    Thanks for that php code, I am also interested to add this feature manually into templates. Did you try to use the do_shortcode() function, which usually runs correctly the shortcode?
    Just to know, where did you fin the php code to use in place of the shortcode? Thank you.

    Riccardo

    Thread Starter fadly007

    (@fadlitn)

    @notebook-driver Thanks you. its work! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to insert manual code on single.php’ is closed to new replies.