vicetias
Forum Replies Created
-
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Time zone issueI also did and they e-mail me: “We have started new sync of the data between your website and our servers which should help with the Stats issue”.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Time zone issueForum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Time zone issueOf course. My local and universal time are ok (4 hours difference). But Jetpack still uses UTC by default.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Time zone issueI tried that trick before I came here from my site’s wp-admin, wordpress.com and also from the wordpress app but nothing changes. My timezone is well synced!
And I use PC and 2 phones. I got the app for android in both devices, but as I said, everything is synced properly.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Time zone issueForum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Time zone issueOf course, I’ve checked it before and it’s ok.
I think I need a function to discount 4 hours. I’ve used another plugin which also counts the views at universal time and I put
strtotime ('-4 hours')
and worked.Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Time zone issueI know but when I go to wordpress.com and I see the stats for a specific post at 8pm on my local time (12am UTC), the stats shows up 0 for the next day already. Then, 4 hours later the stats starts counting again.
Forum: Plugins
In reply to: [Post Views for Jetpack] Not saving in post metaI have a WordPress managed hosting by GoDaddy and they run their own cache system and I can’t change it.
So are you saying cache is causing that _post_views field isn’t getting updated properly in the database?
And you can go to the amp version of this post to see the counter since I only added the shortcode to amp single at the moment.
The other activated plugin right now is BEA post views counter and saves its data in a separated table on the database. And even with other similar old plugins to yours that also collect Jetpack views gave me that issue.
So, what can I do? I can’t use the _post_views meta key to sort posts with that result.
Forum: Plugins
In reply to: [Post Views for Jetpack] Not saving in post metaOk, I disconnected and reconnected my site, then I checked Php my admin and this is what I’m getting:
My site is not on full production yet and I’m currently counting my own views.
Moderator note: Link unshortened and added to 1st message of this topic.
This field is not available for unauth’d users and is not indexed by search engines.- This reply was modified 4 years, 5 months ago by vicetias.
- This reply was modified 4 years, 5 months ago by vicetias.
- This reply was modified 4 years, 5 months ago by vicetias.
- This reply was modified 4 years, 5 months ago by vicetias.
- This reply was modified 4 years, 5 months ago by vicetias.
- This reply was modified 4 years, 5 months ago by Yui. Reason: sitelink
Forum: Plugins
In reply to: [Post Views for Jetpack] Sort popular posts by meta keyOk, thank you. If you find a good way let me know, please, or at least some lines to add to my theme functions.
Something like this:
update_post_meta( $postID, 'post_views_year', get_the_post_views_counter( 'year', $post_ID ) ); update_post_meta( $postID, 'post_views_month', get_the_post_views_counter( 'month', $post_ID ) ); update_post_meta( $postID, 'post_views_week', get_the_post_views_counter( 'week', $post_ID ) ); update_post_meta( $postID, 'post_views_day', get_the_post_views_counter( 'day', $post_ID ) );
Forum: Plugins
In reply to: [Post Views for Jetpack] Sort popular posts by meta keyYes, that’s correct, but it does not create the key for all your posts when you activate the plugin, it only does it when one visits said post. As such, I am not sure it’s something that would be very useful for you.
It’s useful and I know how it works. Meta keys are created/updated every time posts are viewed.
I’m currently using that method with BEA post views and before I did with WordPress Popular Posts, but those plugins don’t work on AMP.
And well, don’t you think you can add those time periods in a future update of your plugin?
Forum: Plugins
In reply to: [Post Views for Jetpack] Sort popular posts by meta keyI’m very bad at coding but I’ll look into this. Anyway, I think I could edit or add some lines to your plugin instead of doing my own, because I just need to collect some time periods with new meta keys.
The only meta key your plugin creates is _post_views, right?
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Change/edit post views countI didn’t find anything helpful there, but at stackexchange I found these lines but don’t work.
$popular = stats_get_csv( 'postviews', array( 'days' => 2, 'limit' => 10 ) );
$top_posts = stats_get_csv( 'postviews', 'period=month&limit=30' );
$post_view_posts = stats_get_csv( 'postviews', array( 'days' => 2, 'limit' => 10 ) );
- This reply was modified 4 years, 5 months ago by vicetias.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Change/edit post views countOh well, ok.
And is it possible to sort popular posts by Jetpack stats in a code like this?
<?php global $post; $recent = new WP_Query(array( 'posts_per_page' => 5, 'orderby' => '?', 'date_query' => array() )); while($recent->have_posts()) : $recent->the_post(); ?>
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Change/edit post views countNothing of that.
This is the first time I install Jetpack and I wanted to migrate the post views count from another plugin that creates a table in the database. Plus, I use a function to collect those views in a meta key for each post.
So, I need to transfer those views to Jetpack stats… but it seems imposible :/