Title: Menu problem
Last modified: August 20, 2016

---

# Menu problem

 *  [Beatboxx](https://wordpress.org/support/users/beatboxx/)
 * (@beatboxx)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/menu-problem-6/)
 * I’m experiencing troubles with my menu. Only if the user is logged in he’s allowed
   to see the page “Ledenlijst” in the menu. The id of the page where it’s about
   is 47, I guess, since if I’m editting the url is:is het url “[http://www.xxxxxx.nl/wp-admin/post.php?post=](http://www.xxxxxx.nl/wp-admin/post.php?post=)**
   47**&action=edit”
 * Mijn menu comes from here:
 *     ```
       <?php ob_start();?><?php
           echo theme_get_menu(array(
                   'source' => theme_get_option('theme_vmenu_source'),
                   'depth' => theme_get_option('theme_vmenu_depth'),
                   'class' => 'art-vmenu'
               )
           );
       ?>
       <?php theme_wrapper('vmenu', array('title' => __('Vertical Menu', THEME_NS), 'content' => ob_get_clean())); ?>
       .....
       ```
   
 * I make from that:
 *     ```
       <?php ob_start();?>
       <?php
           echo theme_get_menu(array(
                   'source' =>
                       if ( is_user_logged_in() ) {
                   wp_list_pages();
               } else {
                   wp_list_pages(exclude = 3,7,31 );
               }
               '  
   
                   'depth' => theme_get_option('theme_vmenu_depth'),
                   'class' => 'art-vmenu'
               )
           );
       ```
   
 * and test.php:
 *     ```
       <?php
               if ( is_user_logged_in() ) {
                   wp_list_pages();
               } else {
                   wp_list_pages('exclude=47' );
               }
               ?>
       ```
   
 * The menu does display in the right way, but even if the user isn’t logged in,
   the page “Ledenlijst” doesnt get displayed. What am I doing wrong?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Beatboxx](https://wordpress.org/support/users/beatboxx/)
 * (@beatboxx)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/menu-problem-6/#post-2248755)
 * Anyone?

Viewing 1 replies (of 1 total)

The topic ‘Menu problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Beatboxx](https://wordpress.org/support/users/beatboxx/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/menu-problem-6/#post-2248755)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
