Bring Your Business to Life › Support › Popular Widget › how to get number of views that your plugin use › Reply To: how to get number of views that your plugin use
August 30, 2015 at 10:56 pm #355185
Keymaster
Yes, you should be able to display the views under each post by using get_post_meta() function. bellow is an example.
echo get_post_meta($post_id, '_popular_views', true );
$post_id is the id of your post “_popular_views” is the custom post value added to each post, that is if you did not changed this setting. Otherwise see “Custom Field” field in the widget.