Created
May 2, 2013 20:15
-
-
Save scottnix/5505052 to your computer and use it in GitHub Desktop.
Thematic conditionals on category loop with an override.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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