[wp-hackers] WP Menu - Showing wrong active class (for me anyway).

Travis Northcutt travis at travisnorthcutt.com
Mon Jun 20 16:27:33 UTC 2011


This Trac ticket may cover at least some of the problem you're
experiencing: http://core.trac.wordpress.org/ticket/16075
--
Travis Northcutt


On Mon, Jun 20, 2011 at 9:51 AM, Robert Lusby <nanogwp at gmail.com> wrote:

> I have a WP Menu setup in the standard way in a theme.
>
> That menu us made up of various pages including:
> Home, Blog, Events, Contact.
>
> example.com/blog
> example.com/events
> example.com/contact
> etc
>
> Events is a custom post type.
>
> When visiting any of the top level "pages", the current active menu class
> is correctly added to the right part of the menu structure. So Contact adds
> a current class to the Contact menu item etc ...
>
> When visiting an item of the "events" custom post type .. eg
> http://example.com/events/**event1 <http://example.com/events/event1>
> the current class gets added to the "Blog" menu item, and not the Events
> menu item.
>
> Any idea why this is? How do I tell it that this is a child of Events, and
> not a child of Blog?
> /events, /blog are all pages.
>
> Thanks,
> Rob
>
>
> ______________________________**_________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.**com <wp-hackers at lists.automattic.com>
> http://lists.automattic.com/**mailman/listinfo/wp-hackers<http://lists.automattic.com/mailman/listinfo/wp-hackers>
>


More information about the wp-hackers mailing list