[wp-trac] [WordPress Trac] #20922: Twenty Eleven hides category and tag text on custom post types being included into loop using 'pre_get_posts' action

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 12 14:40:30 UTC 2012


#20922: Twenty Eleven hides category and tag text on custom post types being
included into loop using 'pre_get_posts' action
--------------------------+-----------------------------
 Reporter:  Marko-M       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.3.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Twenty Eleven themes custom.php uses 'post' == get_post_type() to hide
 category and tag text for pages on Search like this:

 {{{
 <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for
 pages on Search ?>
 ...
 <?php endif; // End if 'post' == get_post_type() ?>
 }}}

 This 'if' doesn't hide category and tag text for pages on Search but hides
 category and tag text on custom post types being included into loop using
 'pre_get_posts' action.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20922>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list