title: Different menus for different user roles
body: <p>I'm trying to display two different menus depending on the user role.</p>
  
  <p>I have setup a new role called 'clients' using this code (in functions.php):</p>
  
  <pre><code>add_role( 'client', 'Client', array(
      'read' =&gt; true,
   ) 
  );
  </code></pre>
  
  <p>and I have two different menus using this code (in functions.php):</p>
  
  <pre><code>function register_my_menus() {
    register_nav_menus(
      array(
    'client-navigation' =&gt; __( 'Client Navigation' ),
    'staff-navigation' =&gt; __( 'Staff Navigation' ),
  
      )
    );
  }
  add_action( 'init', 'register_my_menus' );
  </code></pre>
  
  <p>here is the code which I'm trying to use to call either Client Navigation or Staff Navigation (in header.php):</p>
  
  <pre><code>&lt;?php
          if (current_user_can('client')){
              //menu for client role
               wp_nav_menu( array('theme-location' =&gt; 'client-navigation' ));
  
          }else{
              //default menu
               wp_nav_menu( array('theme-location' =&gt; 'staff-navigation' ));
          }
  ?&gt;
  </code></pre>
  
  <p>I've also tried adding 'echo' before wp_nav_menu and changing <code>theme-location</code> to <code>menu</code> and used the menu name, but it always shows <code>staff-navigation</code> menu.</p>