In Contect-single.php AND Content-php:
<div class="entry-meta">
<?php catchbox_posted_on(); ?> <strong>aantal keer gelezen <font color='#1982d'><b><?php echo gapp_get_post_pageviews(); ?></b></font></strong>
<?php if ( comments_open() && ( $options[ 'commenting_setting' ] != 'disable' ) && ! post_password_required() ) : ?>
<span class="sep sep-comment"> — </span>
<span class="comments-link">
<?php comments_popup_link(__('Leave a reply', 'catchbox'), __('1 Comment ↓', 'catchbox'), __('% Comments ↓', 'catchbox')); ?>
</span>
<?php endif; ?>
</div>
Now i’m looking for the template to put in the recent post widget:
post 1 (20 times)
post 2 (40 times)
hi, thanks for great plugin. i can see pageviews in admin section too, but i couldn’t find where exactly put this code?
single php or content.php? after which codes i am supposed to put this code? i don’t know “This code must be placed in The Loop” meaning. Please help me
to put the code in de recent post widget edit the file class-wp-widget-recent-posts.php in wp-includes
<ul>
<?php while ( $r->have_posts() ) : $r->the_post(); ?>
<li>
<a href="<?php the_permalink(); ?>"><?php get_the_title() ? the_title() : the_ID(); ?> (<?php echo gapp_get_post_pageviews(); ?>)</a>
<?php if ( $show_date ) : ?>
<span class="post-date"><?php echo get_the_date(); ?></span>
<?php endif; ?>
</li>
<?php endwhile; ?>
</ul>