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

WordPress Trac noreply at wordpress.org
Thu Aug 28 08:42:49 UTC 2014


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

Comment (by brent3721):

 Sorry to make things more confusing but I just noticed my issue was caused
 because my css hook to show the current page was .current_page_item  which
 wasn't working on the archive page.  Then I noticed that .current-menu-
 item does seem to work if you make a 'link' nav item and link it to the
 name of your custom post type relatively, in my case the post type was
 work, so '/work/'

 Still feels a little hacky to add it in in this way, I think a box for
 adding post type archives would make more sense to some people.

 b r e n t

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


More information about the wp-trac mailing list