Ciao ragazzi,
ho la possibilità di tirare fuori gli articoli di una determinata categoria e limitarli agli ultimi n inseriti?
<h2> Articoli recenti</h2>
<ul id="listticker">
<?php
$lastposts = get_posts('numberposts=10');
foreach($lastposts as $post) :
setup_postdata($post);
?>
" id="post-<?php the_ID(); ?>"><?php the_title(); ?>
<?php endforeach; ?>