[insert_php] $args = array(
‘posts_per_page’ => 5,
‘offset’ => 0,
‘category’ => ”,
‘category_name’ => ”,
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘include’ => ”,
‘exclude’ => ”,
‘meta_key’ => ”,
‘meta_value’ => ”,
‘post_type’ => ‘post’,
‘post_mime_type’ => ”,
‘post_parent’ => ”,
‘author’ => ”,
‘author_name’ => ”,
‘post_status’ => ”,
‘suppress_filters’ => true
);
$posts_array = get_posts( $args ); [/insert_php]
[insert_php]
$posts = $wpdb->get_results(“SELECT ID, post_title FROM wp_posts WHERE post_status = ‘future’
AND post_type=’post’ ORDER BY post_date ASC LIMIT 0,4”)
// Echo the title of the first scheduled post
echo $posts[0]->post_title;
[/insert_php]
