The following snippet will let you have vertical submenu in WordPress.