Posts 2 Posts: Version 0.6

Nested Queries If, for each post in a loop, you find yourself doing a subquery using the ‘connected’query vars, I’ve got good news for you. Replace something like this: while ( have_posts() ) : the_post(); $connected_writers = get_posts( array( ‘post_type’=> ‘writer’, ‘nopaging’=> true, ‘connected_to’=> $post->ID, ‘suppress_filters’=> false ) );   foreach [...]

Read full post...

Sortable Taxonomy Columns

After finding out how to make sortable columns based on custom fields, several people have asked how they could sort posts by taxonomy terms. So here’s how to do it: Let’s presume we have a ‘product’post type, with a ‘color’taxonomy. Here’s some example code, just to get that out of the way. So we already [...]

Read full post...

No support questions on twitter

So you’re happily coding away at your WordPress site and you stumble on a technical problem. What could be easier than hoping over to the twitter window and pinging one of the core developers? The miracle of the real-time web and all that. But, if you think about it a little, it’s also kind of [...]

Read full post...

Plugin Troubleshooting

Scenario: You’re having trouble with a plugin of mine and you would like me to fix it. Here’s the definitive guide for providing a useful bug report: Versions Make sure you’re using the latest stable version of the plugin, installed on the latest stable version of WordPress. If you’re using older versions, you’re on your [...]

Read full post...