• Resolved drewk2525

    (@drewk2525)


    I’ve got this plugin up and running fine for posts, but I’d like to add a view count for posts from another plugin. I’m working with WPJB (a job board plugin) and I’d like the admin to be able to see how many times each job post was viewed.

    There is a single.php file that I could add a counter to, but I’m unsure how to get WP-PostViews to count views, and then how to get them to display on the back end the way they do for posts.

    Any help would be much appreciated, thank you!

    https://ww.wp.xz.cn/plugins/wp-postviews/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan

    (@gamerz)

    I am not sure how the Job Board Plugin works, if it is using a custom post type, it should work since this plugin store the view count in the post meta.

    This plugin count views by hooking onto the wp_head hook
    https://github.com/lesterchan/wp-postviews/blob/master/wp-postviews.php#L49-L50

    Thread Starter drewk2525

    (@drewk2525)

    Lester, thank you for the response. I have tried many plugins and have not been able to get any of them to successfully track the number of times a job has been viewed. My client is specifically looking for these views to be tracked on the back end. I have attempted to use several plugins to count these views that show an option to count “jobs”, but none of them actually work.

    I really wish this functionality were just native in WPJB. I find it hard to believe that I’m the only one seeking to get a view count for the jobs.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘View count for posts from other plugin’ is closed to new replies.