Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is it possible to make a linked BP doc in a menu conditional on logged in?

  • @sbraiden

    Participant

    I am using the BuddyPress Infinity theme, and have added a couple of menu items to the top navigation menu. One is for docs, which is brilliant because it shows up as an option that I can simply link to conditionally when logged in.

    Where I ran into trouble is by extending a sub-menu from it, which links to specific docs. These, of course, are simply using the native WordPress link feature for menu options, and it does not appear to make their display conditional on login. I can neither find a way to hook this to the BuddyPress conditional status of the parent menu, nor discover how it might be possible to simply limit this from the base link feature. It allows you to type in a URL, but nothing more.

    This results in all of the sub-menu items showing up as separate parent menu options when not logged in. Not only does it create a crazy big menu mess, but it’s providing access to things that should not be accessible when a visitor is not logged in.

    Is it possible to create conditional links in the menu to anything other than what the BuddyPress checkboxes provide?

    Thanks a bunch for any assistance someone might be able to provide to help me troubleshoot this.

    Susan.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @sbraiden

    Participant

    I’m wondering about the “Menu Items Visibility Control” plug-in, allowing you to use WordPress Conditional Tags to enable or disable menu items on the front-end.

    It says it’s compatible up to WordPress 3.6.1. Has anyone used this successfully on WordPress 3.8.1?

    https://wordpress.org/plugins/menu-items-visibility-control/

    Thanks again,
    Susan.

    @sbraiden

    Participant

    Also wondering if anyone can offer an opinion on using the “Nav Menu Roles” plug-in, which appears to be compatible up to 3.8.1?

    https://wordpress.org/plugins/nav-menu-roles/

    Many thanks,
    Susan.

    @sbraiden

    Participant

    The last one’s a winner. Works like a charm.

    “Nav Menu Roles” plug-in is compatible up to 3.8.1.

    https://wordpress.org/plugins/nav-menu-roles/

    It’s super easy to install, and requires no configuration. Just go into

    Dashboard -> Appearance -> Menus

    once you’ve activated it, and it’s options automatically show up when you’re configuring menu items, even if they are not BuddyPress components. Great if you’re linking to a specific doc.

    Hopefully this will help someone else out. Drove me mad.

    Susan.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it possible to make a linked BP doc in a menu conditional on logged in?’ is closed to new replies.
Skip to toolbar