Plugin WP-PostViews installation
-
Hey Forum,
Could you please help me to install the counter plugin WP-PostViewsIn the file index.php I added the code <?php if(function_exists(‘the_views’)) { the_views(); } ?>.
However, the counter is not displayed in the website.
Can someone tell me what I have done wrong?<?php
// Start the Loop
while ( have_posts() ) : the_post();<?php if(function_exists(‘the_views’)) { the_views(); } ?>
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( ‘template-parts/content’, get_post_format() );
// End the loop.
endwhile;Thanks for your help
WernerThe page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.