[wp-testers] Build 8772 and Query Error
Ryan Lin
ryan at webfwrd.com
Fri Aug 29 10:27:38 GMT 2008
Display following error
Warning: Invalid argument supplied for foreach() in
/mnt/local/home/webfwrd/blogfwrd.com/wp-content/themes/blogfwrd/sidebar.php
on line 22
For followin query:
<?php
global $post;
$recentposts = get_posts('numberposts=10');
foreach($recentposts as $post) :?>
<li><a href="<?php the_permalink(); ?>"><?php
the_title(); ?><small>Posted on <?php the_time('l, F j, Y');
?></small></a></li>
<?php endforeach; ?>
It was working fine before I update to build 8772.
More information about the wp-testers
mailing list