[wp-trac] [WordPress Trac] #18614: post_type_archive_title doesn't work when tax_query is added to wp_query

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 7 20:13:13 UTC 2011


#18614: post_type_archive_title doesn't work when tax_query is added to wp_query
----------------------------+----------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Template        |     Version:  3.3
 Severity:  normal          |  Resolution:  wontfix
 Keywords:  has-patch       |
----------------------------+----------------------

Comment (by wonderboymusic):

 ok - then this is still better than returning a term and trying to access
 a property that doesn't exist:
 {{{
 $type = get_query_var( 'post_type' ) ;
 $post_type_obj = get_post_type_object( is_array( $type ) ? $type[0] :
 $type );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18614#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list