aldolat + query   5

Direct Database Queries, Part 1 | Tom McFarlin
This is not the first time I’ve mentioned this, but one of the challenges that come with talking about writing direct database queries to update information in the WordPress database is that you leave yourself open to something like: "Yeah, but there’s an API to do something just like that." And, in many cases, that’s right. I’m a big fan of using ’em, too. But there are times where direct, parameterized database queries can be a more optimal choice.
WordPress  database  query  from instapaper
15 days ago by aldolat
4 Ways to Loop with WordPress | Digging into WordPress
The default loop works perfectly well for most single-loop themes, but for more advanced designs with stuff like multiple and custom loops, more looping power is needed. Fortunately, WordPress provides plenty of flexibility with four ways to loop.
wordpress  loop  query  wp_query  get_posts 
may 2011 by aldolat
WordPress 3.1: Advanced Taxonomy Queries » Otto on WordPress
One of the new things in 3.1 that hasn’t got a lot of discussion yet is the new Advanced Taxonomy Queries mechanism. At the moment, this is still being actively developed, but the basic structure is finalized enough to give at least a semi-coherent explanation on how to use it. Since 3.1 is now going into beta, it’s unlikely to change much.
wordpress  taxonomy  post  query 
november 2010 by aldolat
Define Your Own WordPress Loop Using WP_Query « Weblog Tools Collection
I say skip query_posts. In a way you’ll still be using it, but the better (and sometimes easier) technique is to instantiate your own WP_Query object and create your own loop.
wordpress  loop  wp_query  query 
august 2009 by aldolat

Copy this bookmark: