[wp-trac] [WordPress Trac] #26749: Post Type archive incorrectly identified as "home"

WordPress Trac noreply at wordpress.org
Wed Jan 29 23:12:01 UTC 2014


#26749: Post Type archive incorrectly identified as "home"
--------------------------+------------------------------
 Reporter:  michaelhall   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  3.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by wonderboymusic):

 I think what could happen is - when there is an array of post_types,
 `is_archive` could be true. That's it. Although, I foresee breakage.

 If you made a post_type called News and wanted your homepage to show
 `array( 'news', 'post' )` by filtering `pre_get_posts`, it currently is.
 Setting another flag would cause it to load `archive.php`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26749#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list