[wp-trac] [WordPress Trac] #12902: Ticking the boxes for Twenty Ten: Some areas for improvement
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 11 01:25:05 UTC 2010
#12902: Ticking the boxes for Twenty Ten: Some areas for improvement
-------------------------+--------------------------------------------------
Reporter: demetris | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Themes | Version: 3.0
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Comment(by dd32):
> Customizing it individually in specific templates via large blocks of
if/else/ifs is far more cluttered and confusing than simply separating it
out into clean loops that each have their own design, even if they do have
duplicated parts between them.
> We have things like category-slug.php and search.php templates for a
reason. Using is_category() for things that should be in separate
templates is silly.
The issue at heart (and the reasoning for it) is that its to provide
different posts within a single loop with a different styling.
Create a Post in the "Gallery" category and it'll be styled differently to
one in the "Asides" category, which is different again to any other post.
without introducing yet another get_template_part() call inside loop.php
for each individual post (looking for post-single-category-1.php, post-
single-category2.php, etc) one large if block is unfortunately needed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12902#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list