28 reputation
5
bio website
location
age
visits member for 1 year, 7 months
seen Aug 5 '13 at 6:22

Jul
3
comment Why Isn't My WP_Nav_Menu returning false?
Thanks, I managed to get it working by doing that, plus setting 'container' => falseand then checking for if( $submenu != '' )
Jul
1
comment How to check if current page is a parent item or child item in a given menu
I've made an edit with some code. If you've got time to check if you can see why $submenu is always returning true that would be awesome :)
Jun
29
comment How to check if current page is a parent item or child item in a given menu
Good point. I'll give that a try and post code if I'm still stuck. Thanks.
Jun
29
comment How to check if current page is a parent item or child item in a given menu
I can see this would work if everything is set up properly (E.g. pages actually have the correct parent set etc), however I wonder if there's a way to do it by querying the menu rather than via the pages? The submenu I've made queries the menu, not the page heirarchy, so it would be ideal to do the check on the menu as well. There's always the possibility of the menus not matching up to the page hierarchy.
May
22
comment Not sure how to debug: Send specific users an email when posts are published
Thanks, I'll give it a try :) It looks way cleaner than mine.