“Have you ever wanted to change a class in the loop? You’re likely going to have to edit upwards of five files. The worst part? Most of the code you’re editing is identical.”
15. “Have you ever wanted to
change a class in the loop?
You’re likely going to have
to edit upwards of five
files. The worst part? Most
of the code you’re editing
is identical.”
Daryl Koopersmith
28. TwentyTen
• In archive.php: get_template_part('loop','archive');
• In author.php: get_template_part('loop','author');
• In category.php:
get_template_part('loop','category');
• In index.php: get_template_part('loop','index');
• In search.php: get_template_part('loop','search');
• In tag.php: get_template_part('loop','tag');