🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Init View Count – AI-Powered, Trending, REST API icon
Actively maintained Tested with WP 7.1 #14 in post views

Init View Count – AI-Powered, Trending, REST API

Count post views accurately via REST API with customizable display. Lightweight, fast, and extensible. Includes shortcode with multiple layouts.

Active installs60+10+ tier
Downloads · 30d693▲ +9.1% vs prev. 30d
Rating5/53 reviews
Health score75/100Good
All-time downloads4.6KSince Jun 2025
Support resolved—No recent threads
RequiresWP 6.9PHP 7.4+
Downloads · 7d95▼ -24.6% week over week
Our verdict

Solid choice

Init View Count is a solid plugin choice in 2026, with a few things worth checking first. It runs on 60+ sites, is rated 5/5 and was last updated 1 week ago, and scores 75/100 on our health check.

  • Actively developed — last update 1 week ago
  • Tested with the latest WordPress (7.1)
  • Small user base (60+ active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

316394Sep 3Oct 17Dec 1
Yesterday13
Daily average (1y)9
Peak day126Nov 14, 2026
Last 12 months3.2K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Init View Count stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
post views >100 10,000 Best post views plugins →
rest-api #64 10,000 Best rest-api plugins →
shortcode >100 10,000 Best shortcode plugins →
trending posts #12 198 Best trending posts plugins →
View Counter #23 1,945 Best View Counter plugins →

Version adoption

Share of active sites per release.

  • 2.0100.0%

Rating breakdown

★★★★★★★★★★ 5 from 3 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Init View Count

From the official readme · v2.0.7

Description

Init View Count is a fast, clean plugin to track post views without clutter. It:

  • Uses REST API and JS to count real views
  • Prevents duplicate counts with session/local storage
  • Stores counts in meta keys like _init_view_count, _init_view_day_count, etc.
  • Provides [init_view_count] and [init_view_list] shortcodes
  • Includes [init_view_ranking] shortcode with tabbed ranking by time range
  • Supports template overrides (like WooCommerce)
  • Lightweight. No tracking, no admin bloat.
  • Includes REST API to query most viewed posts
  • Supports pagination in [init_view_list] via the page attribute
  • Batch view tracking support to reduce REST requests on busy sites
  • Optional strict IP-based filtering to block fake view requests posted directly to the REST endpoint
  • Includes a Dashboard widget to monitor top viewed posts directly in wp-admin
  • Learns site-wide traffic shape (hourly & weekday) via AI-powered smoothing
  • Shapes cached and updated efficiently with minimal overhead
  • Safe reset action to rebuild patterns automatically
  • Trending Engine v4: rolling 24-hour velocity, real hour-by-hour momentum and per-post uplift, measured in traffic-normalized hours so rankings stay accurate at any time of day
  • Optional scroll area (CSS selector) so the scroll percent can be measured on the article itself instead of the whole page
  • Native Block Editor (Gutenberg) support with 3 dedicated blocks, no build step required
  • Abilities API support (WordPress 6.9+) — read-only abilities for AI agents and automation tools
  • Optional “Reduce view count cache refreshes” mode for busy sites running a persistent object cache (Redis, Memcached)
  • Optional “Buffer view writes in the object cache” mode for very busy sites: views are collected in Redis/Memcached and written to the database in batches, with zero database writes per view

This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.

GitHub repository: https://github.com/brokensmile2103/init-view-count

Highlights

  • REST-first design — no jQuery or legacy Ajax
  • View tracking powered by time + scroll detection
  • Realtime display with optional animated counters
  • Fully theme-compatible with overrideable templates
  • Developer-friendly with rich filter support
  • Optional [init_view_ranking] shortcode for tabbed view by day/week/month/total
  • Assets are only loaded when needed – perfect for performance-conscious themes
  • Fully compatible with headless and SPA frameworks (REST-first + lazy)
  • Supports batch mode: delay view requests and send in groups (configurable in settings)
  • Includes optional Dashboard widget for quick admin overview of top viewed posts
  • AI-powered Traffic Shape Learner – understands your site’s hourly & weekly rhythm
  • Auto-integrated with Trending Engine v4 for seasonality-aware uplift detection
  • Smart fallbacks (day → week → month → total) ensure rankings never run empty
  • Ultra-light: only 1 write per increment + 1 rollup per day, cache-first design

Shortcodes

[init_view_count]

Shows the view count of the current post, or of any post via the id attribute.

Attributes:
– id: Post ID to display (default: the current post)
– field: total (default), day, week, month – which counter to display
– format: formatted (default), raw, or short – controls number formatting
– time: true to show time diff from post date (e.g. “3 days ago”)
– icon: true to display a small SVG icon before the count
– schema: true to output schema.org microdata (InteractionCounter)
– class: add a custom CSS class to the outer wrapper

[init_view_list]

Show list of most viewed posts.

Attributes:
– number: Number of posts to show (default: 10)
– page: Show a specific page of results (default: 1)
– post_type: Type of post (default: post)
– template: sidebar (default), full, grid, details (can be overridden)
– title: Title above list. Set to empty (title="") to hide
– class: Custom class added to wrapper
– orderby: Sort field (default: meta_value_num)
– order: ASC or DESC (default: DESC)
– range: total, day, week, month, trending
– category: Filter by category slug
– tag: Filter by tag slug
– empty: Message to show if no posts found

[init_view_ranking]

Show tabbed ranking of most viewed posts. Uses REST API and JavaScript for dynamic loading. Optimized for SPA/headless usage.

Attributes:
– tabs: Comma-separated list of ranges. Available: total, day, week, month, yesterday, last_week, last_month (default: total,day,week,month)
– number: Number of posts per tab (default: 5)
– post_type: Comma-separated post type(s) to rank (default: post and page)
– class: Custom class for outer wrapper

This shortcode automatically enqueues required JS and uses skeleton loaders while fetching data.

REST API

This plugin exposes two REST endpoints to interact with view counts: one for recording views and another for retrieving top posts.

POST /wp-json/initvico/v1/count
Record one or more views. Accepts a single post ID or an array of post IDs.

Parameters:
– post_id — (int|array) Required. One or more post IDs to increment view count for.

This endpoint checks if the post is published, belongs to a supported post type, and applies delay/scroll config (via JavaScript). It updates total and optionally day/week/month view counters.

Note: The number of post IDs processed per request is limited based on the batch setting in plugin options.

Optional: if “Require REST nonce verification?” is enabled in plugin settings, this endpoint also requires a valid X-WP-Nonce header (action wp_rest). This is off by default — see the FAQ below before turning it on.

GET /wp-json/initvico/v1/top
Retrieve the most viewed posts, ranked by view count.

Parameters:
– range — (string) total, day, week, month, yesterday, last_week, last_month, trending. Defaults to total.
– post_type — (string) Comma-separated post type(s) to query. Only existing, publicly viewable post types are accepted. Defaults to post and page.
– number — (int) Number of posts to return. Default: 5, maximum 100 (filterable via init_plugin_suite_view_count_api_top_max_number).
– page — (int) Page number. Default: 1.
– fields — (string) minimal (id, title, link) or full (includes excerpt, thumbnail, type, date, etc.)
– tax — (string) Optional. Taxonomy slug (e.g. category).
– terms — (string) Comma-separated term slugs or IDs.
– no_cache — (bool) If 1, disables transient caching.

This endpoint supports filtering and caching, and can be extended to support custom output formats.

Filters for Developers

This plugin provides multiple filters to help developers customize behavior and output in both REST API and shortcode use cases.

init_plugin_suite_view_count_should_count
Allow or prevent counting views for a specific post.
Applies to: REST /count
Params: bool $should_count, int $post_id, WP_REST_Request $request

init_plugin_suite_view_count_meta_key
Change the meta key used to read or write view counts.
Applies to: REST & Shortcodes
Params: string $meta_key, int|null $post_id

init_plugin_suite_view_count_after_counted
Run custom logic after view count has been incremented. Fires once per counted view in every mode. With Buffer view writes in the object cache on, the values in $updated (total, day, week, month) are “stored in the database + still buffered”, so they keep increasing by one per view exactly as before.
Applies to: REST /count
Params: int $post_id, array $updated, WP_REST_Request $request

init_plugin_suite_view_count_increment_keys
Change which counters are incremented for a post on each view, as a field => meta key map (default: total, plus day/week/month when enabled). Remove fields you don’t need for a post type, or add custom field => meta key pairs to have them incremented in the same write. total is always kept. Only total, day, week and month appear in the response and in $updated.
Applies to: REST /count
Params: array $fields, int $post_id, WP_REST_Request $request

init_plugin_suite_view_count_api_top_args
Customize WP_Query arguments used for /top endpoint.
Applies to: REST /top
Params: array $args, WP_REST_Request $request

init_plugin_suite_view_count_api_top_item
Modify each item before it’s returned in the /top response.
Applies to: REST /top
Params: array $item, WP_Post $post, WP_REST_Request $request

init_plugin_suite_view_count_api_top_cache_time
Adjust cache time (in seconds) for /top results.
Applies to: REST /top
Params: int $ttl, WP_REST_Request $request

init_plugin_suite_view_count_api_top_max_number
Maximum number of items /top returns per request (default 100).
Applies to: REST /top
Params: int $max, WP_REST_Request $request

init_plugin_suite_view_count_ip_headers
List of $_SERVER keys checked, in order, to detect the visitor IP for Strict IP check.
Applies to: REST /count (Strict IP check)
Params: array $headers

init_plugin_suite_view_count_meta_flush_interval
Minimum number of seconds between two refreshes of a post’s meta cache after counting views, when Reduce view count cache refreshes is enabled and a persistent object cache is active. Return 0 to refresh after every view.
Applies to: REST /count
Params: int $interval (already clamped to the 10–600 range of the setting)

init_plugin_suite_view_count_buffer_enabled
Turn off Buffer view writes in the object cache for the current request (return false). It cannot force buffering on when the setting is off or no working persistent object cache is available.
Applies to: View counting
Params: bool $enabled

init_plugin_suite_view_count_buffer_backend_status
Status of the object cache for buffering: ok, no_object_cache, unavailable (e.g. Redis is down), non_atomic (e.g. Redis Object Cache with igbinary) or non_persistent (the plugin’s cache group is ignored/non-persistent). Anything other than ok makes views go straight to the database. Useful if your drop-in has its own way of reporting a lost connection.
Applies to: View counting
Params: string $status

init_plugin_suite_view_count_buffer_flush_interval
Seconds between two writes of buffered views to the database.
Applies to: Buffer flush job
Params: int $interval (already clamped to the 30–600 range of the setting)

init_plugin_suite_view_count_buffer_flush_time_limit
Maximum seconds one buffer write may run (default 20, capped at 240). Anything left is written on the next run.
Applies to: Buffer flush job
Params: int $time_limit, string $context

init_plugin_suite_view_count_buffer_flushed (action)
Runs after each write of buffered views to the database.
Applies to: Buffer flush job
Params: array $summary (context, items, views, post_ids, increments as meta_key => [ post_id => views ], requeued, remaining, cleaned, duration)

init_plugin_suite_view_count_top_post_types
Customize the list of post types returned by the /top endpoint.
Applies to: REST /top
Params: array $post_types, WP_REST_Request $request

init_plugin_suite_view_count_query_args
Filter WP_Query args for [init_view_list] shortcode.
Applies to: [init_view_list]
Params: array $args, array $atts

init_plugin_suite_view_count_empty_output
Customize the HTML output when no posts are found.
Applies to: [init_view_list]
Params: string $output, array $atts

init_plugin_suite_view_count_view_list_atts
Modify shortcode attributes before WP_Query is run.
Applies to: [init_view_list]
Params: array $atts

init_plugin_suite_view_count_default_shortcode
Customize the default shortcode used when auto-inserting view count into post content.
Applies to: [init_view_count] auto-insert
Params: string $shortcode

init_plugin_suite_view_count_auto_insert_enabled
Control whether auto-insert is enabled for a given context.
Applies to: [init_view_count] auto-insert
Params: bool $enabled, string $position, string $post_type

init_plugin_suite_view_count_engagement_meta_keys
Change the meta keys used to retrieve like and share counts when calculating engagement quality.
Applies to: Engagement algorithm
Params: array $meta_keys (likes, shares), int $post_id

init_plugin_suite_view_count_trending_post_types
Override the list of post types used by the Trending cron calculation.
Applies to: Cron Trending
Params: array $post_types

init_plugin_suite_view_count_trending_component_weights
Adjust weights for Trending score components. Each weight is an exponent on its component (0 turns it off, 1 = default), except ewma (share of the hour-by-hour velocity versus the 24-hour velocity; 1 = 65%), explore (1 = 5% chance of inserting 1–2 promising posts; default 0 since 2.0.6) and mmr (topic diversity; 1 = lambda 0.75).
Applies to: Trending algorithm
Params: array $weights (velocity, engagement, freshness, momentum, uplift, ewma, fatigue, explore, mmr)

init_plugin_suite_view_count_trending_tuning
Fine-tune Trending Engine v4 (since 2.0.6). Keys and defaults: velocity_exponent (1.0; lower compresses the gap between busy and quiet posts, 0 = log like before 2.0.6), prior_hours (2), hot_half_life (3 hours), uplift_smoothing (10 views/day), uplift_min/uplift_max (0.75/2.0), freshness_boost (0.25), freshness_half_life (6 hours), engagement_max (0.5), age_grace (2 hours), age_half_life (72 hours), age_floor (0.5; 1 = no age penalty).
Applies to: Trending algorithm
Params: array $tuning

init_plugin_suite_view_count_trending_recent_comments_days
Number of days of approved comments counted as engagement (default 7, one grouped query per run). Return 0 to use the lifetime comment count without any query, like before 2.0.6.
Applies to: Trending algorithm
Params: int $days

init_plugin_suite_view_count_trending_yesterday_candidates
How many of yesterday’s most viewed posts are added to the Trending candidates (default: half of init_plugin_suite_view_count_trending_limit).
Applies to: Cron Trending
Params: int $number

init_plugin_suite_view_count_scroll_target
Change the CSS selector of the scroll area for the current page ('' = whole page). Runs when the front-end script is set up, so it can depend on the post or template.
Applies to: Front-end view counting
Params: string $selector

init_plugin_suite_view_count_shape_sample_rate
Sample rate N used when Sample Traffic Shape writes is enabled: traffic shape data is recorded from 1 in N view requests, each sample weighted N times. Return 1 to record every request.
Applies to: Traffic Shape Learner
Params: int $rate (already clamped to the 2–100 range of the setting)

Functions for Developers

init_plugin_suite_view_count_increment_meta( $post_id, $meta_keys )
Add one view to several counters of a post. Uses the object cache buffer when Buffer view writes in the object cache is active, otherwise one atomic database UPDATE (exactly like the built-in counter). Use it when your theme or plugin counts views for a related post (e.g. a chapter also counting toward its series), so that it benefits from buffering too. Returns array( 'buffered' => bool, 'pending' => array( meta_key => views still buffered ) ).

init_plugin_suite_view_count_get_pending_views( $post_id, $meta_key = '_init_view_count' )
Views of a post/counter still waiting in the buffer (0 when buffering is off). get_post_meta() + this value gives the live number.

init_plugin_suite_view_count_buffer_flush( $args = array() )
Write all buffered views to the database now. Safe to call at any time; returns a summary array, or false when there is nothing it can do (no persistent object cache, or another write is running).

Template Override

To customize output layout, copy any template file into your theme:

Example: your-theme/init-view-count/view-list-grid.php

License

This plugin is licensed under the GPLv2 or later.
You are free to use, modify, and distribute it under the same license.

Installation

  1. Upload plugin to /wp-content/plugins/init-view-count/
  2. Activate via Plugins menu
  3. Use [init_view_count] or [init_view_list] in your content
  4. Customize settings in Settings → Init View Count

Changelog

2.0.7 – November 14, 2026

  • Fix: when the scroll area (or the whole page) fit on screen at first load – images not loaded yet, content still a loading placeholder or inserted later – the scroll check passed immediately, so a view counted after the delay without any scrolling. This case now only counts once the page has finished loading and the layout has been stable for 1 second, and it is checked again right before sending, so content that grows in the meantime requires real scrolling
  • Improvement: the script re-checks the scroll condition when images load or the measured area changes size (ResizeObserver)

2.0.6 – November 14, 2026

  • New: Scroll area (CSS selector) setting to measure the scroll percent on an element (e.g. .entry-content) instead of the whole page. Empty = whole page, as before
  • Fix: a 100% scroll requirement could never be reached on zoomed/high-density screens (sub-pixel scroll stop)
  • New: Trending Engine v4 – rolling 24-hour views, real hour-by-hour momentum, uplift vs. the post’s own usual level, traffic-normalized hours, correct day/week/month time windows. More accurate rankings, especially after midnight and for old posts going viral again
  • Fix: the weekday traffic pattern was never learned correctly
  • Performance: the Trending transient read on each page view is ~65% smaller
  • New filters: init_plugin_suite_view_count_trending_tuning, init_plugin_suite_view_count_scroll_target
  • Change: “Tested up to” removed from the main plugin file (kept in readme only)

2.0.5 – October 18, 2026

  • Improvement: buffered view writes keep object cache memory minimal; drained counters are deleted right after the hour ends
  • Improvement: buffered key expiry lowered from 2 days to 1 day

2.0.4 – October 18, 2026

  • New: Buffer view writes in the object cache option for very busy sites (Redis/Memcached), with zero database writes per view and batched flushes
  • New: filter init_plugin_suite_view_count_increment_keys and helpers init_plugin_suite_view_count_increment_meta(), init_plugin_suite_view_count_buffer_flush()
  • Fix: duplicate counter rows (and lost views) when the first views of a period arrived at the same moment
  • Fix: Traffic Shape data for a new day could be wiped by late writes

2.0.3 – October 4, 2026

  • New: Reduce view count cache refreshes option for sites with a persistent object cache
  • New: Sample Traffic Shape writes option to cut Traffic Shape database writes on busy sites
  • Docs: corrected outdated readme information

2.0.2 – September 26, 2026

  • Security: Traffic Shape reset now requires manage_options and a nonce; GET /top only exposes public post types and caps number at 100; ranking script no longer uses innerHTML
  • Fix: timezone bugs in daily/weekly/monthly reset, DST drift and Trending post age
  • Fix: several front-end and block issues (multiple ranking blocks, blocked storage, subdirectory installs, block attributes)
  • Performance: one atomic UPDATE per view, minimal writes in the daily rollover, Trending run from ~590 to ~30 queries
  • Improvement: full uninstall cleanup, including multisite

Full changelog on WordPress.org →

Screenshots

Plugin settings page – configure post types, view types, delay, scroll check, and storage method.
Plugin settings page – configure post types, view types, delay, scroll check, and storage…
Shortcode builder for [init_view_list] – generate view-based post lists with custom templates.
Shortcode builder for [init_view_list] – generate view-based post lists with custom…
Shortcode builder for [init_view_ranking] – generate tabbed rankings for different view ranges.
Shortcode builder for [init_view_ranking] – generate tabbed rankings for different view…
Shortcode builder for [init_view_count] – display view count for current post with format options.
Shortcode builder for [init_view_count] – display view count for current post with format…
Frontend view – ranking display (all time), light mode interface.
Frontend view – ranking display (all time), light mode interface.
Frontend view – ranking display (this week), dark mode interface.
Frontend view – ranking display (this week), dark mode interface.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Init View Count alternatives

All post views plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Page View Count Page View Count Places an icon, all time views count and views today count at the bottom of posts, pages… by Steve Truman 10K+ ★★★★★★★★★★ 4 (55) 5 months ago 59
2 WebberZone Top 10 — Popular Posts WebberZone Top 10 — Popular Posts Track post views and page views, and display popular posts and trending content on your… by Ajay 10K+ ★★★★★★★★★★ 4.6 (102) 21 hours ago 92
3 Wp Post Views – WordPress Post views counter Wp Post Views – WordPress Post views counter WP Post Views is a lightweight and efficient plugin to track and display post views in… by Ronak J Vanpariya 4K+ ★★★★★★★★★★ 4.4 (7) 9 hours ago 82
4 WP Views Counter WP Views Counter Fast, lightweight post views counter. Display views in admin, blocks or shortcodes — no… by etruel 2K+ ★★★★★★★★★★ 5 (5) 12 months ago 55
5 Easy Post Views Count Easy Post Views Count Add an easy post views count plugin into your site and get count views of your posts and… by Alpha BPO 2K+ ★★★★★★★★★★ 4 (6) 3 years ago 36
6 Post Views for Jetpack Post Views for Jetpack Display the number of views for each one of your posts, as recorded by Jetpack Stats. by Jeremy Herve 1K+ ★★★★★★★★★★ 5 (13) 6 months ago 61
7 Simple Post Views Count Simple Post Views Count Count visitor views for your posts [ALSO, READ OUR RECOMMENDATION]. by ttodua 500+ ★★★★★★★★★★ 4 (4) 5 years ago 31
8 Graceful Extra Graceful Extra Companion addon for Graceful theme. Adds reading time, post views, post display options… by Aslam 400+ ★★★★★★★★★★ No reviews 2 months ago 66
9 Jetpack Post Views Jetpack Post Views Display your most popular posts using Jetpack stats. by Steven Lambert 200+ ★★★★★★★★★★ 5 (9) 12 years ago 38
10 View Post Counter – Website Analytics View Post Counter – Website Analytics A lightweight WordPress analytics plugin that tracks post, page, and custom post type views… by ThemesVila 100+ ★★★★★★★★★★ 4.8 (4) 3 months ago 70

FAQ

Init View Count: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Init View Count free?

Yes. Init View Count is free to download and use from the official WordPress.org plugin directory.

Is Init View Count safe to use in 2026?

Init View Count is a solid plugin choice in 2026, with a few things worth checking first. It runs on 60+ sites, is rated 5/5 and was last updated 1 week ago, and scores 75/100 on our health check.

How many websites use Init View Count?

Init View Count is active on 60+ WordPress websites and has been downloaded 4,626 times since it launched in June 2025. It was downloaded 693 times in the last 30 days.

Does Init View Count work with WordPress 7.1?

Yes. The developer has tested Init View Count up to WordPress 7.2, the latest release. It requires WordPress 6.9 or newer.

What PHP version does Init View Count need?

Init View Count requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Init View Count last updated?

The latest version, 2.0.7, was released on November 23, 2026 (1 week ago).

Who makes Init View Count?

Init View Count is developed and maintained by Init HTML.

What are the best alternatives to Init View Count?

The most popular alternatives to Init View Count are Page View Count (10K+ installs), WebberZone Top 10 (10K+ installs) and Wp Post Views (4K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open