Displays a post’s total post views along with the label and/or icon. The function gathers all of the data, prepares the display, and then displays the post views container.


pvc_post_views( $post_id = 0, $echo = true );


$post_id int required

Stores the post’s ID.

$echo boolean

Determines whether the post views should be displayed or not.


A string of display options that include the post’s ID, total number of views, label, and icon.