Problems with multiple menus
-
I’m making menus for logged off/in users. One or the other will show depending on whether they are logged in. It’s simple code,
// Navigation menu if (is_user_logged_in() ) { register_nav_menus( array( 'main' => __('User'), } else { 'visitor' => __( 'Visitor' ) ) ); };
But it keeps returning this error:
Parse error: syntax error, unexpected ‘}’, expecting ‘)’ in C:\xampp\htdocs\mysite\wp-content\themes\THEME\functions.php on line 225Line 255 being the one containing
} else {
It’s pretty insane really. Any help? WP 3 menus amuse me by making me feel like a noob.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Problems with multiple menus’ is closed to new replies.