How to show views inside

[ad_1]

This is my code in a custom taxonomy file (taxonomy-tv_channels.php) and the URL is

<?php get_header(); ?>

<h1><?php $taxonomy = get_queried_object(); echo  $taxonomy->name; ?> Live Tv Online</h1>


 the_field('url'); ?>


<!--VIEWS-->
<?php echo do_shortcode('[post-views]'); ?> Views


<?php get_footer(); ?>

As you can see that I added the post views code inside but not working at all. If I use a loop then it messes up the page. How is possible to show views or comments section, because the comment form is also not working?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer