I have a custom post type in my wordpress theme. I want to add a custom class to the nav menu for the pages created in that custom post type. I read that you can use a filter hook: "nav_menu_css_class", but my php chops are pretty limited. How do I set up that filter hook to apply only to my custom post type pages in the nav menu and give them a custom class?

Another question: $item->type_label Where does this come from and are there other things you can apply to this variable "$item" ?
–
ColinJun 15 '11 at 21:21

1

the $item object is passed by the apply_filters call and it holds all of the item variables. you can get a list of the by adding somewhere in the function var_dump($item);
–
Bainternet♦Jun 15 '11 at 21:28