[wp-trac] [WordPress Trac] #26269: register_taxonomy should accept has_archive

WordPress Trac noreply at wordpress.org
Tue Sep 30 16:36:52 UTC 2014


#26269: register_taxonomy should accept has_archive
-------------------------+----------------------
 Reporter:  mattbeck     |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Taxonomy     |     Version:
 Severity:  minor        |  Resolution:  invalid
 Keywords:  needs-patch  |     Focuses:
-------------------------+----------------------

Comment (by mattbeck):

 Replying to [comment:5 nacin]:
 > The very concept of `has_archive` (as it applies to post types) doesn't
 exist for taxonomies. See #13816. If you want to suppress /tag/foo/ pages,
 you'll want to evaluate the `rewrite` and `public` args.


 Gotcha, that wasn't clear.

 Updated the codex to reflect this method.
 http://codex.wordpress.org/Function_Reference/register_taxonomy#Example_Private_Taxonomy

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


More information about the wp-trac mailing list