• Resolved Shamrock

    (@meagainatpmp)


    I am using WordPress.org 3.3.2 and the Theme, Twenty Eleven 1.3 by the WordPress team.

    The PaidMemberShipsPro Members pages show up as public view menus across the top of this theme. So the Membership Account is a top menu and then all the member pages such as Membership Billing, Membership Cancel, Membership Invoice and so on are all shown as drop down menus. You can not see any private information until you log in but I do not want all these members menus on the public view.

    Is there a way I can make these menus only show up after a customer logs in? All I want in the public view is the Membership Levels for my subscription page.

    Maybe there is a better theme to use with PaidMemberShipsPro? What theme is working for you?

    Thanks
    Patrick

    http://wordpress.org/extend/plugins/paid-memberships-pro/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason Coleman

    (@strangerstudios)

    Most themes (like Twenty Eleven) are set to add any top level page to the menu.

    You can override this by going to Appearance –> Menus in the WP dashboard and creating a menu with the pages you want. (A search for “Twenty Eleven Custom Menu” should give you some help.)

    You can update your theme to show a different menu to logged in users. This takes a bit of programming. You would need to add logic to the header.php file of the theme to check for a logged in member. Something like: (untested)

    if(function_exists("pmpro_hasMembershipLevel"))
    {
        if(pmpro_hasMembershipLevel())
        {
            wp_nav_menu( array( 'menu' => 'loggedin', 'theme_location' => 'primary' ) );
        }
        else
        {
             wp_nav_menu( array( 'menu' => 'loggedout', 'theme_location' => 'primary' ) );
        }
    }
    else
    {
        wp_nav_menu( array( 'theme_location' => 'primary' ) );
    }

    And you would need to register two new menus in functions.php:

    register_nav_menu( 'primary', __( 'Logged In Menu', 'loggedin' ) );
    register_nav_menu( 'primary', __( 'Logged Out Menu', 'loggedout' ) );

    Now, you should see two new menus in the admin that you can manage to show different menus to logged in users vs. logger out.

    Good luck.

    Plugin Author Jason Coleman

    (@strangerstudios)

    resolving

    Thread Starter Shamrock

    (@meagainatpmp)

    I used the code you posted and believe I got This working. I had to make a few minor changes to the theme I am using but the code now switches between two menus based on a person being logged in or out. Very cool.

    Thanks
    Patrick

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Paid Memberships Pro] PMP membership pages show in Public View. Please Help.’ is closed to new replies.