[wp-trac] [WordPress Trac] #38910: `is_post_type_archive()` return true when the current page is tag archive

WordPress Trac noreply at wordpress.org
Tue Mar 19 01:06:39 UTC 2019


#38910: `is_post_type_archive()` return true when the current page is tag archive
-------------------------------------+------------------------------
 Reporter:  yaquawa                  |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  4.6.1
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:  template
-------------------------------------+------------------------------
Changes (by desrosj):

 * keywords:   => reporter-feedback close


Comment:

 Hi @yaquawa,

 First, my apologies it took so long to get a response to this ticket.

 Are you still experiencing this behavior with the latest version of
 WordPress? If so, can you provide more details about which theme you
 experienced this with? Are you sure that the theme was not giving priority
 to `is_tag()` and not `is_post_type_archive()`? In my testing using Twenty
 Seventeen and Twenty Nineteen, both of those conditional functions return
 `true`.

 Marking this as a candidate to `close` as a `worksforme` pending more
 details.

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


More information about the wp-trac mailing list