Thursday, 2 October 2014

Wordpress: Get Recent Posts





= array(
    
'numberposts' => 10,
    
'offset' => 0,
    
'category' => 0,
    
'orderby' => 'post_date',
    
'order' => 'DESC',
    
'include' => ,
    
'exclude' => 
,
    
'meta_key' => ,
    
'meta_value' =>
,
    
'post_type' => 'post',
    
'post_status' => 'draft, publish, future, pending, private',
    
'suppress_filters' => true );

    
$recent_posts = wp_get_recent_posts( $args, ARRAY_A );?>


 


( $args, $output); ?>


$output is an Array.

No comments:

Post a Comment