Steven Lambert
Forum Replies Created
-
I have a few ideas. Do you know if your website gets any views between those hours? Also, what Time Zone are you in and around what time do you see your Jetpack stats reset for the day? For example, my stats reset for me around 6pm Mountain Standard Time.
Forum: Plugins
In reply to: [Jetpack Post Views] I have a patch requestThats a very interesting find. I took a look through your code and it seems that you use the $random variable to break caching for all calls (stats_get_scv, blog_uri, and blog_id), but then you use those results to update the view count for all posts. Are you finding that your post views remain accurate doing that?
Thats very interesting… What are the settings of the Widget set to?
Forum: Plugins
In reply to: [Jetpack Post Views] How to make it say "Total Views"I assume you are using the code
<?php echo get_post_meta( $post->ID, 'jetpack-post-views', true ); ?>
to get the views for each post. This function only returns a number. To get it to say something, just add the string of what you want to display before the function call:
<?php echo "Total Views: ".get_post_meta( $post->ID, 'jetpack-post-views', true ); ?>
Alright, I was hoping for something that wouldn’t require so many different calls, but at least it’s something. A few more questions then:
1) What is the maximum amount of posts I can list for the post_id parameter?
2) What is your recommended amount of posts I should query at a time?Forum: Plugins
In reply to: [Jetpack Post Views] Jetpack Post Views Widget not updating statsYou’re welcome. I’ll take a look into the code that deals with the Jetpack function to see what may have been happening.
Forum: Plugins
In reply to: [Jetpack Post Views] Jetpack Post Views Widget not updating statsThanks for letting me know, just a few things to find out where the problem is:
First, please ensure that the plugin can access Jetpack – go to the Jetpack Post Views Settings page and make sure that at least one of the connections is green.
Second, that the post is getting views – go to your Jetpack Stats page and make sure that the post is actually getting views and that the views are different than what the widget shows.Lastly, please let me know the answers to the following questions:
1) Is the post(s) a custom post type?
2) Does the post(s) belong to a custom category/tag?
3) Does your site have over 500 posts?
4) In the Jetpack Post Views Settings page, which of the 3 connections are green?Forum: Plugins
In reply to: [Jetpack Post Views] Jetpack Top PostsThe current widget still isn’t mine, but is a Top Posts Widget.
Again, without seeing the problem I’m not sure how I can help you. I would make sure that you have enabled Post Thumbnails in you function.php file and that you are using them for you posts. See https://www.wpbeginner.com/beginners-guide/how-to-add-featured-image-or-post-thumbnails-in-wordpress/ for more information.
Forum: Plugins
In reply to: [Jetpack Post Views] Jetpack Top PostsJetpack Post Views does not use any styling for the widget output by default. All the styling is inherited from the themes styling of lists and h3s. The only time I use styling is if you change the display output to “thumbnails” or “thumbnails + title”. Even then it shouldn’t affect the styling of lists or h3s, just how the thumbnails and title are positioned.
I took at look at your site and I couldn’t seem to find the widget being used. You have a popular posts widget, but it isn’t this one.
The only thing I can think that is going on off the top of my head is maybe your top post title has a ton of whitespace or newline characters in it. Without seeing the problem I’m not sure how to help. Sorry.
Forum: Plugins
In reply to: [Jetpack Post Views] Custom Post Types views bugThanks for letting me know, I’ll get it fixed in the next patch. I’ll also set an option for displaying the view stats on the All Posts page so you can enable or disable it if you want to.
The plugin only focuses on posts and ignores pages completely. I’m not sure if I want to change that just yet or not.
As for categories and tags, I don’t really categorize post by categories and tags. It would be difficult to figure out which posts have what tags and belong to which category and then filter them enough to get data.
Forum: Plugins
In reply to: [Jetpack Post Views] Drafts and scheduled posts showing errorYa, I didn’t think about scheduled posts or drafts. I’ll get that fixed in the next patch.
Forum: Plugins
In reply to: [Jetpack Post Views] Question about cached outputI removed the cache, should work now.
Forum: Plugins
In reply to: [Jetpack Post Views] Time interval: Day stops working after a bitYa, thats a cache problem. I’ll get that fixed and we’ll see if it works.
Forum: Plugins
In reply to: [Jetpack Post Views] Time interval: Day stops working after a bitVectry, could you answer me these questions and I’ll see if I can track down the problem (although there seems to be a lot of people having problems with the new cache feature I added, so I’m going to have to remove that to fix those today, maybe yours is related):
- Is the post a custom post type?
- Does the post belong to a custom category/tag?
- Does your site have over 500 posts?
- In the Jetpack Post Views Settings page, which of the 3 connections are green?