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

WordPress Trac wp-trac at lists.automattic.com
Fri May 28 01:14:21 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 Stargater59):

 Yes, in each of the cases above I have in my functions.php file a function
 which uses wp_query to grab the content out of the custom post type and
 display it on a custom template.

 "single.php" displays single blog posts. "single-work.php" would normally
 be used by a blog post called "work", but in my case its being used by the
 "work" post type single posts. But, if I'm understanding correctly,
 WordPress has no way of distinguishing the difference from normal single-
 posts and custom single-posts, so "single-work.php" has no way of
 referencing to where the actual "original source" of the post type is,
 which in this case is on page-work.php?

 If that's the case, then I'm unsure if there's an alternative/better way
 of handling this?

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


More information about the wp-trac mailing list