[wp-trac] [WordPress Trac] #18108: Custom code for different post formats in twentyeleven
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 14 08:15:21 UTC 2011
#18108: Custom code for different post formats in twentyeleven
-------------------------+-----------------------------
Reporter: murky | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.2
Severity: normal | Keywords: has-patch
-------------------------+-----------------------------
I wanted to be able to customise the post format in twentyeleven, but
regardless of the format, content-single was used.
Therefore, in single.php changing the line
<?php get_template_part( 'content', 'single' ); ?>
to
get_template_part( 'content-single', get_post_format() ); ?>
would maintain current behaviour, but would allow a child theme to
override behaviour for certain post formats by adding content-single-
status.php (and so on).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18108>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list