[wp-hackers] new WP_Query vs. get_posts() - any difference?

scribu scribu at gmail.com
Wed Dec 23 21:07:00 UTC 2009

On the performance part, it actually has a little overhead, since there's an
extra function call made.

Obviously, you should use get_posts() when you don't need all the extra
query info, just the post data, without having to do a SELECT manually. It's
just a convenience function.

On Wed, Dec 23, 2009 at 10:34 PM, Davit Barbakadze <jayarjo at gmail.com>wrote:

> Is there any benefit of running get_posts(), for example can it be
> more efficient, since it doesn't retrieve all that additional info? Or
> it is the same, since as  Austin said it instantiates WP_Query?


More information about the wp-hackers mailing list