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

Counter showing twice

$
0
0

Replies: 0

I have a custom post type. In the template for this CPT I am using:

echo do_shortcode('[pvc_stats postid="" increase="1" show_views_today="1"]');

But the counter is also being appended to the end of the_content()
meaning it is displayed twice on the page.

This is not happening for native posts or pages. I have the counter switched OFF for this CPT.

How can I ensure that only the shortcode version of the counter displays?


Viewing all articles
Browse latest Browse all 59525

Trending Articles