[wp-trac] [WordPress Trac] #13543: menu selected page class problem

WordPress Trac wp-trac at lists.automattic.com
Thu May 27 20:15:16 UTC 2010


#13543: menu selected page class problem
--------------------------+-------------------------------------------------
 Reporter:  Angeloverona  |        Owner:  filosofo
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:  3.0     
Component:  Menus         |      Version:  3.0     
 Severity:  normal        |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by Stargater59):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 There seems to be some strange behavior with this when combining custom
 post types and menus.

 I'm currently working on two sites under 3.0. On one site I have a "Work"
 page which uses a custom post type to display "my work", however when
 viewing a single post under the my work custom post type, the "Work"
 navbar item doesn't get any "current page" classes.

 Note that the above site doesn't have any navbar item for a "blog".

 On another site I have 2 custom post types, both of which are not sub-
 pages of blog, yet when viewing a single post of either of the post types
 the blog navbar item gets highlighted.

 An additional issue is that the second custom post type (Tutorials) is a
 sub-page of "Resources" and when viewing a single post under the tutorials
 post type, again the blog menu item gets highlighted, but the Resources
 does not.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13543#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list