Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • nickrobinson352
    Participant

    @nickrobinson352


    nickrobinson352
    Participant

    @nickrobinson352

    I dont see anything.


    nickrobinson352
    Participant

    @nickrobinson352

    I tried that, still get the same warning 🙁


    nickrobinson352
    Participant

    @nickrobinson352

    Here is the function where I create a dynamic Menu . This function is called from a ‘wp_nav_menu_items’ filter function. The below function creates a dynamic menu based on the buddypress groups the user is entitled to. The idea is to provide navigation to the groups directly via a Menu.

    function get_entitled_groups_menu_html()
    {
        $dataset  = getDS_entitled_groups();
        $html = "";
        foreach($dataset as $row)
        {
            $url = site_url()."/groups/".$row->slug;
            $html .= '<ul id="menu-item-381" align="right" class="bp-menu bp-groups-nav current_page_item current-menu-item menu-item menu-item-type-bp_nav menu-item-object-bp_loggedin_nav menu-item-381">';
            $html .= '<a href="'.$url.'">'.$row->name.'</a></ul>';
        }
        return $html;
    }

    The menu renders properly, however when clicked I get the warning. I know I can suppress the warning by turning WP_DEBUG off, but the fact that it does not throw an warning, when I navigate to the group page via going to groups page and then selecting the individual group, but only does when I navigate via this function makes me think there must be a better way.


    nickrobinson352
    Participant

    @nickrobinson352

    I cant seem to find any plugins to associate one user to the other.

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar