[wp-hackers] WP Menu - Showing wrong active class (for me anyway).
Robert Lusby
nanogwp at gmail.com
Tue Jun 21 16:52:10 UTC 2011
Thanks.
Any custom post type "singles" don't show up under a custom post type
"page" in the menu.
What, therefore, is the correct way to do a Custom Post Type "listing"
page, so any children show under it in the menu? Eg like "blog home"? :)
Rob
On 20/06/2011 17:27, Travis Northcutt wrote:
> 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>
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list