Monthly Archives: September 2010

Template Parts in WP 3.0

Use template parts in WP 3.0 for repeated blocks of code. In the example below, you would create a file called loop-custom.php which would be called from each section. Continue reading

Preserve Original Query Arguments

Codex Function_Reference query_posts #Preserving_the_Original_Query_Pagination_etc

If you want to override the original arguments, you must merge your argument array last (reverse of what is shown in Codex):

global $wp_query;
      array('cat' => 1)