Show View Count in Query/Loop
-
Hi I’m looking at making the post count appear via my posts page in my query/loop but it doesn’t show and I can’t seem to work out why:
<?php query_posts('posts_per_page=1&orderby=date&order=DESC&cat=-1458'); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="switch"> <div class="avg_words"> <a href="<?php the_permalink() ?>"> <?php echo the_post_thumbnail('si-images'); ?> </a> </div> <div class="avg_num"> <span><?php if(function_exists('the_views')) { the_views(); } ?></span> <a href="<?php the_permalink() ?>"> <?php echo the_post_thumbnail('si-images'); ?> </a> </div> </div> <?php endwhile; endif; ?>
Any ideas on why this isn’t loading?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Show View Count in Query/Loop’ is closed to new replies.