• 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 “https://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)
Viewing 1 replies (of 1 total)
  • The topic ‘Menu problem’ is closed to new replies.