[wp-hackers] strange get_posts behaviour in 2.1.1

Pixline supporto at pixline.net
Thu Jul 26 17:16:04 GMT 2007


maybe its just fault of another bug  [0], but I can't understand why  
my widget returns a list of the same post, insteand of the latest n  
posts, here:

$news = get_posts("numberposts=".$howmany);
foreach($news as $post):
echo "<li><a href='".get_permalink()."'>".the_title('','',false)."</ 
a> <small>(".get_the_time('d/m',false).")</small>"
endforeach;

it works on svn, but don't work in 2.2.1; I'm trying also other  
versions, but I really can't understand *why*. I also used all kinds  
of setup_postdata or similar to 'refresh' posts informations, but it  
simply don't work.

[0]	http://trac.wordpress.org/ticket/4251




Paolo
------------------------------------
Pixline Coding Collective
http://pixline.net





More information about the wp-hackers mailing list