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 = '';