Custom Queries: How, What, When, Where & Why

If you want to work with WordPress one of the very first things you need to understand is the concept of the “the loop.” When information needs to be displayed on a page the loop makes a “query” to the database, basically asking for said information. If you wish to customize any aspect of a theme or site you will want to learn how to customize the loop and the query to do exactly you want. There are three different ways you can customize the loop functionality: 1. query_posts(); 2. WP_Query(); and 3. get_posts(). In this presentation we will look at each of these three techniques. We will discuss what they have in common, what they do differently and when, where and why you would want to use each one. Concrete examples will be used to take all the mystery out of making custom queries via the WordPress loop.

#wcn14customqueries