Date issue

Best WordPress theme for game news websites, game portals or whatever your preferred subject.
GK User
Sat Feb 23, 2013 5:47 pm
Hello,

I have some problems with the dates on the homepage. All the date are same ... the one of the last post. But when I click on a post the date is correct.

Can you tell me where in the code i have to go to fix this ???


Thanks
User avatar
Fresh Boarder

GK User
Sat Feb 23, 2013 6:05 pm
Hi,

Please replace in the gavern/widgets.nsp.php file fragment:


Code: Select all
// post_date
if($this->wdgt_config['data_source_type'] == 'post' || $this->wdgt_config['data_source_type'] == 'custom') {
    $article_date = $this->wdgt_results[0][$i]->post_date;
} else {
    $article_date = $this->wdgt_results[$i]->post_date;
}


to:

Code: Select all
// post_date
if($this->wdgt_config['data_source_type'] == 'post' || $this->wdgt_config['data_source_type'] == 'custom') {
    $article_date = $this->wdgt_results[0][$i]->post_date;
    $art_ID = $this->wdgt_results[0][$i]->ID;
} else {
    $article_date = $this->wdgt_results[$i]->post_date;
    $art_ID = $this->wdgt_results[$i]->ID;
}


we will fix this problem in the nearest update - probably in the next week.
User avatar
Administrator

GK User
Sun Feb 24, 2013 11:51 pm
hi,

I did the modification you said, it works perfectly now ...

thanks a lot
User avatar
Fresh Boarder


cron