The Elementor Website Builder has it all: drag and drop page builder, pixel perfect design, mobile responsive editing,…
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


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
