Random posts today

Posted in: Newspaper
Post count: 134

Hi,

when I select sorting order of Random posts today its not showing up any posts that I have entered today right after 12:00 AM. I inspected the td_data_source.php and it seems to be properly set to get the posts from today, but it wont get any posts right after the time 12:00AM. How to make it to get the posts that are wriren from 12:00AM of one day to 12:00 AM next day?

P.S its already 1:00 AM and still wont get any news posts that i write to test it.

Post count: 23312

Hello Marto,

I suppose it is a time difference on your side. Please ensure that you have correct set your timezone from your WordPress and also please make sure that you local time are the same with your real time, from this -> http://screencast.com/t/r74r1y2MATM I have checked the code from this feature and the function which compare the time uses local time. Also, please try to disable all the active plugins, leave just Visual Composer, clear all cache and install only the plugins that come bundled with our theme and rule out the conflicting plugins.

Hope this helps and let us know how it goes!

Thank you for the message!

Post count: 134

Hi,

the theme uses the UTC time. When they both pass 12 AM everything works as expected.

Thanks!

Post count: 6

Hello Marto, did you find the solution? I’m having the exact same problem, when I select “Random Posts Today” the posts stop showing up at around 6 PM (because my local time is UTC -6). I have checked several times my local time settings to no avail. Any other suggestions?

Post count: 23312

Hello rods,

Please ensure that you have correctly set it your timezone, clear all cache and test it again.

Thanks.

Post count: 23312

Hello rods,

Please ensure that you have correctly set it your timezone, clear all cache and test it again.

Thanks.

Post count: 6

Sorry, I have checked that the local time is correct several times and flushed the cache but everyday the posts stop showing up around 6:00 (00:00 hours UTC time) when selecting “Random Posts Today”. By the way, I am referring to the widget blocks of the sidebar.

Post count: 22421

Hi,

I’m not sure why this happens, maybe there is a limitation on your server that does not allow the timezone to be detected for some reason. Please try to add it manually like so: http://screencast.com/t/ZKmSrGpV
date_default_timezone_set('America/Los_Angeles');
Here are the time zones that the function can get: http://php.net/manual/en/timezones.php

Let us know how it goes.
Thank you!

Post count: 6

This worked, thank you so much! By the way I am using Newsmag not Newspaper I forgot to mention that.

Post count: 22421

Glad it worked, although if you have further questions, please move over to the newsmag forum, as this is destined for the newspaper theme.
Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.