Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
WP-PostViews icon

WP-PostViews

v1.77
by Lester Chan · 4.4 (64 reviews)

Enables you to display how many times a post/page had been viewed.

100K+ active installs Updated Aug 09, 2023 Tested to 6.3.5
Try Demo Download
Pre-installed Ready in ~10s No card
WP-PostViews

About WP-PostViews

This document provides instructions on how to use the WP-PostViews plugin for WordPress. It explains where to place the code to display post views on your website and how to configure the plugin in the WordPress admin panel. It also includes information on the plugin's development, translations, credits, and recent updates.

Screenshots

WP-PostViews screenshot
WP-PostViews screenshot

Frequently asked questions

How do I display post views on my WordPress site?
You can display post views by adding `<?php if(function_exists('the_views')) { the_views(); } ?>` to your theme files like `index.php`, `archive.php`, `single.php`, `post.php`, or `page.php`. Alternatively, use the shortcode `[views]` or `[views id="1"]` within a post.
Where can I configure the WP-PostViews plugin?
The plugin can be configured by navigating to WP-Admin -> Settings -> PostViews in your WordPress dashboard.
What are some of the template variables available in WP-PostViews?
Available template variables include `%POST_CATEGORY_ID%` (which returns the Post's Category ID, or priority Category ID with Yoast SEO) and `%POST_THUMBNAIL%`.
Does the plugin count views in preview mode?
No, the plugin is designed not to count views when a post is in preview mode.
Can I embed view counts directly into a post?
Yes, you can embed view counts into a post using the shortcode `[views]` or `[views id="POST_ID"]`.

Changelog

Version 1.77

  • NEW: Use Vanilla JS. Props @JiveDig
  • NEW: Bump to WordPress 6.2
  • NEW: Support views under fields for Rest API. Props @vitro-mod

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…