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

WordPress Trac wp-trac at lists.automattic.com
Thu May 27 22:52:31 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     |  
--------------------------+-------------------------------------------------

Comment(by nacin):

 It sounds like your "Work" page is simply a template that uses query_posts
 or query var manipulation or the like to display the custom posts? In that
 case, the nav menu walker won't realize that the "Work" page and the
 my_work custom post type are related in that sort of hierarchy.

 We can probably add a filter if we haven't already to the $classes array
 for each item that passes through.

 Again in the second issue you have an issue where the static posts page
 thinks that it is the parent of the custom post types. I'm not sure if
 that's a flaw in our logic, I imagine we should only be looking for
 'post'.

 Third issue is a combination of the first two issues.

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


More information about the wp-trac mailing list