Skip to content

It's a Wordpress Plugin that includes total view count on each post and provides shortcode for frontend functionality. And also shows the total post view in admin panel.

Notifications You must be signed in to change notification settings

Md-Razu-Haolader/wp-post-view

Repository files navigation

WP Posts View Plugin

It's a Wordpress Plugin that includes total view count on each post, provides shortcode for frontend functionality, shows the total post view column in admin panel and adds a widget to show latest posts in the dashboard.

Shortcode

[wppv]

Functionality

Shows 10 (by default) latest post titles with their view count. There is a form given where user can choose the number of posts, category of posts, and whether the post will be ordered by their view counts in ascending or descending order.

An authorized user can also choose all these as well as the IDs of posts of which only the excerpt will be shown by passing parameter through the shortcode.

Parameters

  • numposts [int] : Determines the number of posts to be shown.
  • category [string] : Determines the category of posts to be shown. The values should be comma (,) seperated for multiple values and no inverted comma ('') is needed.
  • order [string] : If this parameter is given, the posts will be ordered in the given order by the total views. Only ASC or DESC is expected to be the value.
  • ids [int] : Determines the ids of the posts of which excerpts will be shown. If this parameter is not given, excerpt will not be shown for any post. The values should be comma (,) seperated for multiple values and no inverted comma is needed.

Example

[wppv numposts=10 category=blog,book ids=1,2,3 order=DESC]

About

It's a Wordpress Plugin that includes total view count on each post and provides shortcode for frontend functionality. And also shows the total post view in admin panel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published