• Resolved Xaib Aslam

    (@lahorimela)


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

    https://mydomain.com/channel/term-slug

    <?php get_header(); ?>
    
    <h1><?php $taxonomy = get_queried_object(); echo  $taxonomy->name; ?> Live Tv Online</h1>
    
    
    https://youtube.com/watch?v=<?php 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?

Viewing 15 replies - 1 through 15 (of 23 total)
Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘How to show views inside’ is closed to new replies.