Display post views in WordPress- 2 simple solutions

WordPress Page view count

Display post views in WordPress- with & without Plugins

There is abundant content available online. People are uploading blogs for free and making money. So in this competition, how to set yourself apart? 

You can start with big steps like creating a user-friendly website, responsive themes, high-quality content, etc. 

But you can also take small steps that leave an impact on your user.

Humans are very impressionable. Their judgment and choices get affected by other people’s decisions. So you can present social proof that people are loving your website. This will attract new audiences to your site.

But the question is How? 

You can display page views on WordPress as social proof to retain and gain new audiences. Psychology predicts that netizens like to engage with already popular content. As a result, displaying page views on WordPress can increase your audience engagement.

Post views are Passive yet a good way to boost the trust of your audience.  The high-view posts will attract the audience. This will eventually lead to even higher engagement.

Why Display post views in WordPress?

Displaying post views in WordPress can help your audience navigate to your best content. You can show your most popular articles. As a result, your audience will stay longer on your website. 

This will give you more time to induce a call to action. For instance, convincing the visitor to buy a product, avail of a service, or subscribe to your newsletter.  

Post Views in WordPress

Post View in WordPress is the number of times a visitor loads a page on your website. These figures are usually updated every five minutes.

How do you count page views: WordPress views vs Visitor?

Visitors and Views are two main traffic units in WordPress to display Page views. Visitors refer to the user who is accessing your site for the first time in a given period like day, week, or month. While Views indicate how many times a page has been viewed irrespective of the viewer. 

In Simple words, a viewer can visit your website and go through 3 blogs continuously. You will have 3 views but your Visitor count will remain 1. This is because one person is visiting 3 of your blogs. 

If the same person revisits your website in a given time frame, let’s say 3 hours, the visitor tally will remain the same but the pageviews will increase. 

You can Display Post views in WordPress through two methods, with or without plugins. 

Display post views in WordPress- Use Plugins

You do not need to go through the technical hassle to display Post views in WordPress. You can use the post view count WordPress plugin. There are plenty of Plugins available on the insert. 

Some of the best post view count WordPress plugins are:

1. Post Views Counter

post view count WordPress plugins
Image Source

The Post Views Counter plugin is a well-known and reliable tool. The Plugin displays number of times a page, post,  or custom object is visited. Post Views Counter uses 4 methods to retrieve data:-Javascript,  Fast AJAX, PHP, or REST API.

You can easily customize the style and position of the view counter in the plugin’s display settings. You can exclude visitors, such as bots, logged-in users, or user roles like editor or admin, from view counts.

2. Page View Count

Page View Count WordPress Plugin
Image source

Page View Count plugin allows you to show the number of visitors to each post and page to new and interested users. 

You can command the plugin to only show counts for specific topics or pages. Surely this will help you filter your best content and select the most popular content and posts for increased interaction.

The count display is modest. In addition to that, You can match the block color, position, and size can be changed with your existing theme.

3. Page Visit Counter 

Page Visit Counter WordPress plugin
Image source

Page View displays Page view counts as content blocks. Hence, these blocks can be presented at the bottom of specified site pages. You can also use Page visit Counter to restrict page view counts to specific post types. 

This plugin is very customizable so it allows you to match the module’s style to your website’s.

Also read: Best Blogging site for Bloggers: Blogger Vs WordPress

Display post views in WordPress- Without Plugins 

You can also display post view count WordPress without a plugin. All you need to do is edit HTML code and add post views count HTML code. 

Follow these simple steps to Display post views in WordPress without Plugins:

  1. Go to your WordPress admin dashboard and log in.
  1. To access the theme editor, go to Appearance, then Theme Editor.
  1. Open the files functions.php.
  1. Before the closing tag?>, copy and paste the following code:
function gt_get_post_view() {

    $count = get_post_meta( get_the_ID(), 'post_views_count', true );

    return "$count views";


function gt_set_post_view() {

    $key = 'post_views_count';

    $post_id = get_the_ID();

    $count = (int) get_post_meta( $post_id, $key, true );


    update_post_meta( $post_id, $key, $count );


function gt_posts_column_views( $columns ) {

    $columns['post_views'] = 'Views';

    return $columns;


function gt_posts_custom_column_views( $column ) {

    if ( $column === 'post_views') {

        echo gt_get_post_view();



add_filter( 'manage_posts_columns', 'gt_posts_column_views' );

add_action( 'manage_posts_custom_column', 'gt_posts_custom_column_views' );
  1. Open the single.php file in your browser.
  1. Copy and paste the following code inside the while loop (to find it in the file, press CTRL + F or Command + F):
<?php gt_set_post_view(); ?>

  1. Copy and paste the following code wherever you want the number of post or page views to appear:
<?= gt_get_post_view(); ?>

  1. Your Post will look like this. 
Example of editing WordPress post view without Plugins
Image source

Using these two methods Display post views in WordPress & increase engagement on your site. 

FAQs- Display WordPress Post Views on the Page

How can I see the view count in WordPress?

You can easily view your total view count on WordPress through a plugin. For instance: 

  1. Install Page View count plugin 
  2. Go to the Page View Count menu in the WordPress Settings menu.
  3. Activate Page Views Count and adjust the settings in the options box to your preference.
  4. To see your Page Views Count, erase any caches and browser cache.

How do I add a post view count in WordPress?

You can add post views count in WordPress through 2 methods. You can either use popular WordPress Plugins like Post View Counter, Page Visit Counter, and Page View counter. 

The second option is to edit your WordPress HTML code to display the Post views count.  

Does WordPress show who viewed my website?

You can access a lot of data about your audience. . Know how many active users are there on your site at any one time. You can also track their geographic locations, the pages they’re looking at, and more.

But the identity of the viewer is kept anonymous to protect the privacy of the user.

Can I see who visits my website?

You can know the number of Visitors and Unique views on your website through WordPress Dashboard. You can also track other details of your visitors like how they accessed your website, which device they were using, which demography they belong etc. 

But all this data is fully anonymous to protect the privacy of the users. This is done to comply with various data privacy rules, such as the GDPR, which protects internet users.