Docs / Configuration / Settings Reference

Settings Reference

Every setting in View Counter WP explained in detail.

Enabled Post Types

Controls which post types are tracked. By default, Post and Page are enabled. Any public post type registered on your site (including custom post types like Products, Portfolios, etc.) can be toggled on.

Only published posts of enabled types will be counted.

Counting Mode

Three modes are available:

Mode How it works Best for
PHP Counts on server during page render Simple sites without page caching
JavaScript Fires an AJAX request after page load Sites using WP Super Cache, W3TC, or similar
REST API Fires a fetch() to the REST endpoint Sites with edge caching (Cloudflare, LiteSpeed)

PHP mode adds zero front-end overhead. JS and REST modes add one lightweight async request per page view.

Count Interval

Sets a window (in minutes) during which the same visitor won’t be counted again for the same post. Default: 30 minutes.

  • Set to 0 to disable — every page load counts (no cookies used)
  • Set to 1440 (24 hours) for daily unique-ish counting
  • Maximum value: 10080 (7 days)

When enabled, a small cookie (containing no personal data) is set to track the interval.

Exclusions

Exclude bots (default: on) — Filters out known crawlers and bots based on user-agent strings.

Exclude all logged-in users — When enabled, no logged-in user’s visit will count.

Exclude specific roles — Fine-grained control. For example, exclude Administrators and Editors but count Subscribers.

Exclude IPs / CIDR ranges — One per line or comma-separated. Supports both exact IPs (203.0.113.10) and CIDR notation (192.168.1.0/24).

Display

Auto display position: Insert the view count before or after post content automatically. Set to “Manual only” to use shortcodes or blocks exclusively.

Label: The text label shown with the count (default: “Views”).

Format: Template string using tokens:

  • {label} — the label text
  • {count} — formatted number (e.g. “12,847”)
  • {count_raw} — unformatted number
  • {post_id} — the post ID

Default format: {label}: {count}

Admin UI

Views column: Adds a sortable “Views” column to post list tables in wp-admin.

Dashboard widget: Shows a monthly graph and top posts on the main WordPress Dashboard.

Top items limit: How many posts to show in the dashboard widget and top content lists (1–50).