Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Code for post view

$
0
0

Replies: 0

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


Viewing all articles
Browse latest Browse all 59525

Trending Articles