63 reputation
15
bio website
location
age
visits member for 3 years, 4 months
seen Jul 22 '11 at 5:03

Feb
6
awarded  Notable Question
May
21
awarded  Popular Question
Dec
20
awarded  Teacher
May
6
asked Put standard wordpress options into a theme options panel?
Apr
15
awarded  Scholar
Apr
15
accepted Get the ID of the page a menu item links to?
Apr
15
comment Get the ID of the page a menu item links to?
JAN!!!!! This did it! Sorry for the late response, but your suggestion did the trick! You're fabulous! Thank you! And for the record for those who aren't sure what to do: I changed the $pageid = $wp_query->post->ID; at the top of the page to $pageid = get_post_meta( $item->ID, '_menu_item_object_id', true );
Apr
5
awarded  Student
Apr
1
comment Get the ID of the page a menu item links to?
Thanks for the suggestion, Serdar! Unfortunately this won't work because I need the menu to be able to be controlled from the appearance > menu section of the admin panel! That's why I'm using wp_menu_nav and not get_pages.
Mar
31
comment Get the ID of the page a menu item links to?
If there are alternatives to the page id, that would work, too. I initially tried using $item->url, but the url wouldn't function as a class name. The page title works only if there are no spaces, and the other attributes are not generated by default.
Mar
31
asked Get the ID of the page a menu item links to?
Mar
29
awarded  Editor
Mar
29
revised Add Class to Specific Link in Custom Menu
added 475 characters in body; added 10 characters in body
Mar
29
answered Add Class to Specific Link in Custom Menu