[wp-trac] [WordPress Trac] #7326: get_posts not working properly
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 16 21:47:41 GMT 2008
#7326: get_posts not working properly
---------------------+------------------------------------------------------
Reporter: wpcandy | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.6.1
Component: General | Version: 2.6
Severity: normal | Keywords:
---------------------+------------------------------------------------------
Here's an example of a get_posts code block that doesn't work. I don't
think any get_posts queries are working.
<?php $lastposts =
get_posts('numberposts=1&category=7&orderby=post_date&order=DESC');
foreach($lastposts as $post) :
setup_postdata($post);
?>
--
Ticket URL: <http://trac.wordpress.org/ticket/7326>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list