Categories
Wordpress

Worpress queries: When to use WP_Query, get_posts, query_posts or pre_get_posts

When you’re creating a custom theme, at some point you may to want to bring back a set of results other than what Wordpress defaults to. The question is, do you use WP_Query, get_posts, query_posts or pre_get_posts?