‘post_type’ => ‘post’, // Tipo di post da recuperare
‘orderby’ => ‘date’, // Ordina gli articoli per data
‘order’ => ‘DESC’ // Ordine discendente
);
$posts = get_posts($args);
if ($posts) {
echo ‘
-
- ‘; // Inizio elenco puntato
-
- foreach ($posts as $post) {
‘;
}
echo ‘
‘; // Fine elenco puntato
}
?>