mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 09:13:38 +01:00
only return published posts
This commit is contained in:
parent
6d89ed96d2
commit
8d080d5bb7
@ -383,7 +383,7 @@ class Subtemplate {
|
||||
}
|
||||
} else {
|
||||
|
||||
$latestPosts = wp_get_recent_posts(array( 'numberposts' => '3' ));
|
||||
$latestPosts = wp_get_recent_posts(array( 'numberposts' => '3', 'post_status' => 'publish', ));
|
||||
|
||||
foreach( $latestPosts as $latest ) {
|
||||
$postTitle = $latest['post_title'];
|
||||
|
Loading…
Reference in New Issue
Block a user