Support » Theme: ProfitMag » Displaying # of post views?

  • I would like to display # of views on my posts. I see in single.php there is <?php profitmag_record_views(get_the_ID()); // Record post view ?> but the views are not showing on my posts. I’m not sure if at some point in the past maybe I deleted something that enables me to display the views, I don’t know. How can I display them on post pages?

Viewing 1 replies (of 1 total)
  • Hello @kosmicbird,

    The posts view count set in the code block you have mentioned is actually set and used to display the posts with respect to their views in the “Profitmag:Popular Posts” widget bundled with the theme.

    That is, as per the theme design / functionality, the views count is not intended to be displayed directly, rather it is used to generate the the list of popular posts for the use of popular posts widget.

    However, if you still want to use the post meta to display the post views in the site front-end itself, you can achieve the output with some code customization via Child theme approach..

    If you require further instructions, please explain the placement of the post views so that we could help you further.

    Also, for future reference, you can also choose to post in your queries at the theme’s official support forum at :

    Hope this Helps,

    Best Regards !!

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying # of post views?’ is closed to new replies.