latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Login Logout Navigation Option

Home Forums Community Forum Login Logout Navigation Option

This topic contains 2 replies, has 2 voices. Last updated by  Bruce 3 years, 11 months ago.

Topic Author Topic
Posted: Wednesday Jan 30th, 2013 at 3:11 pm #40021

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Saturday Feb 2nd, 2013 at 5:37 am #40355
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

I’m reviewing this thread now.

Posted: Saturday Feb 2nd, 2013 at 5:44 am #40359
Bruce
Username: Bruce
Staff Member

Based on Philly’s post, the correct way to set this up would be to replace this line:

wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fl', 'theme_location' => 'primary-menu' ) );

With:

if ( is_user_logged_in() ) {
    wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fl', 'theme_location' => 'logged-in-menu' ) );
} else {
    wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fl', 'theme_location' => 'logged-out-menu ) );
}

Note that the above has not been tested, and maybe require tweaking to get it to work correctly.

That’s about as far as we can go with custom code, as per our Support Policy. If you need any further help, we recommend posting a job listing on http://jobs.wordpress.net/, or http://elance.com/.

Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.