Skip to content

Instantly share code, notes, and snippets.

@scottnix
Created May 2, 2013 20:15
Show Gist options
  • Save scottnix/5505052 to your computer and use it in GitHub Desktop.
Save scottnix/5505052 to your computer and use it in GitHub Desktop.
Thematic conditionals on category loop with an override.
// override the category loop
// http://thematictheme.com/forums/topic/post-listing-without-thumbnails/
function childtheme_override_category_loop() {
if ( is_category('blog') ) {
while ( have_posts() ) : the_post();
// your custom blog loop
// reference thematic/library/extensions/content-extensions.php where the original loop resides.
endwhile;
} else {
while ( have_posts() ) : the_post();
// a custom loop for everything else
endwhile;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment