Hi can you help me how to show from latest to first in blog archive page, What to change heere ?
startOfMonth();
$toDate = clone $fromDate;
$toDate->modify('+1 '.$range);
$pages = PageBuilder::categoryFilter('post_date', [$fromDate, $toDate], ['view' => PageBuilder::block('category_view'), 'match' => 'in', 'renderIfEmpty' => false]);
$archive = ($range == 'year') ? 'Year ' . $fromDate->format('Y') : $fromDate->format('F Y');
} catch (\Exception $e) {
$pages = [];
$archive = 'None';
}
?>