[Resolved] Don't display 'jetpack-post-views' for scheduled post
I have the following problem on my website.
I have a miltiauthor website and we recieve a lot of posts from our authors. Our editor uses the sheduled post function becouse it saves time for us.
Unfortunately when we started using sheduled post function I found out that published posts do not disply unlimited jetpack statistic. I use the following function:
get_post_meta( $post->ID, ‘jetpack-post-views’, true );
Although when I publush posts manually everything is fine.
I try to solve this problem by manually updating already published post. Only then the post count shows up.
I looked into database and saw that in the postmeta table after scheduled publishing of the post the ‘jetpack-post-views’ item is not created. Althought there are ‘jetpack-post-views-(daily,monthly,yearly)’ items.
Also when I preview any post which have not been published yet, I do not see post count.
I think this happens because the function that creates item in the postmeta database table is triggered only when the post in published manualy.
Could you please investigate this issue and advice how I can modify the code to trigger database updating function for scheduled posts published.
- The topic ‘[Resolved] Don't display 'jetpack-post-views' for scheduled post’ is closed to new replies.