Skip to content

Commit 2ab68ca

Browse files
committed
learn.jquery.com: Actually show recently updated pages in the Recently Updated column of the homepage.
1 parent 9f480a5 commit 2ab68ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

themes/learn.jquery.com/home.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333
<h3><?php _e( 'Recently Updated', 'twentyeleven' ); ?></h3>
3434
<?php
3535
$recent_updates = new WP_Query( array(
36-
'post_type' => 'page',
37-
'post_limits' => 10,
36+
'post_type' => 'page',
37+
'post_limits' => 10,
38+
'order' => 'DESC',
39+
'orderby' => 'modified'
3840
));
3941
?>
4042
<ul>

0 commit comments

Comments
 (0)