Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Code for post view

Discussion in 'Misc WordPress Requests' started by acqua, Feb 17, 2018.

  1. acqua


    Code for post view, by acqua

    Basically, I want to display my post view counter on the single.php under the title.
    I have this code:

    pvc_post_views( $post_id = 0, $echo = true );

    and here is the place where it shouldgo:

    echo '<span class="entry-meta-comments"></span>' . "\n";

    however if I put it like this:

    echo '<span class="entry-meta-comments">pvc_post_views( $post_id = 0, $echo = true );</span>' . "\n";

    then the plugin does not show.
    Have I built the code line wrong? Please help

    Code for post view

Share This Page

Monarch Social Sharing Plugin