2016-02-02, 09:49:50
(This post was last modified: 2016-02-04, 03:43:35 by Przemek89.
Edit Reason: Found solution
)
I needed to sort galleries by date, but 'pubDate' item was missing in gallery xml file, so I add a line of code:
after:
In edit.php file.
Now new galleries have correct dates.
Code:
$data->addChild('pubDate')->addCData(stripslashes(date('r'))); // need to be date('r')
after:
Code:
foreach ($gallery as $key => $value) {
if ($key != 'items' && $key != 'item') {
$data->addChild($key)->addCData(stripslashes($value));
}
In edit.php file.
Now new galleries have correct dates.