[wp-trac] [WordPress Trac] #16075: Add Post Type Archives support in Nav Menus

WordPress Trac noreply at wordpress.org
Tue Sep 15 17:27:39 UTC 2015


#16075: Add Post Type Archives support in Nav Menus
-------------------------------------------------+-------------------------
 Reporter:  matzipan                             |       Owner:
     Type:  enhancement                          |  aaroncampbell
 Priority:  normal                               |      Status:  assigned
Component:  Menus                                |   Milestone:  4.4
 Severity:  normal                               |     Version:  3.1
 Keywords:  has-patch ui-feedback needs-testing  |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by aaroncampbell):

 I'm happy to put these wherever we decide they should go. I'd just really
 like to get them in :)

 I personally don't love the idea of a catch all accordion for links that
 don't fix somewhere else (which is really what I think that would turn
 into).

 As for the way it's labeled in the "View All" tab, that's something you
 can control when making the CPT:
 {{{#!php
 <?php
 $labels = array(
     /* Other labels*/
     'archives' => 'My Custom Post Type Archives',
 );

 $args = array(
     /* Other args */
     'labels'      => $labels,
     'has_archive' => true,
 );

 register_post_type( 'mycpt', $args );
 }}}

 So if they wanted a '- Archives' they could. I'm not sure WE can add that
 though, because wouldn't that be impossible to properly translate?

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


More information about the wp-trac mailing list