lordealeister/popular-posts

Enable view count on posts

Installs: 111

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-plugin

pkg:composer/lordealeister/popular-posts

1.3.1 2021-11-17 14:54 UTC

This package is auto-updated.

Last update: 2025-10-17 23:32:27 UTC


README

Enable view count on posts

Usage

Posts views are tracked automatically. To set view manually, use:

set_post_view() // Current post
set_post_view($post_id) // Specific post 

To get post total views:

get_post_views(); // Current post
get_post_views($post_id); // Specific post 

To get most popular posts:

get_popular_posts($args); // Pass additional args to query