From aa8b9a8d894a5edf6082c394d31c1a4109efeb06 Mon Sep 17 00:00:00 2001 From: Pedro Oliveira <65639491+PedroUNB@users.noreply.github.com> Date: Mon, 28 Mar 2022 17:12:32 -0300 Subject: [PATCH] Update recent-content.php --- lib/blocks/recent-content.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/blocks/recent-content.php b/lib/blocks/recent-content.php index 0a75def..6b26399 100644 --- a/lib/blocks/recent-content.php +++ b/lib/blocks/recent-content.php @@ -38,6 +38,8 @@ function render_callback($attributes) $recent = new \WP_Query([ 'post_type' => 'post', 'showposts' => 6, + 'orderby' => 'date', + 'order' => 'DESC', ]); $output = '';