WordPress.org

Ready to get started?Download WordPress

Forums

Menu problem (2 posts)

  1. Beatboxx
    Member
    Posted 3 years ago #

    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=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?

  2. Beatboxx
    Member
    Posted 3 years ago #

    Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.