Skip to:
Content
Pages
Categories
Search
Top
Bottom

Issue about adding new sub item to profile menu


  • kanellos
    Participant

    @kanellos

    Hi,

    I need to add an additional functionality to the submenu profile item (Activity, Groups …).
    I have found this link that is exactly what i need : buddypress-custom-pages

    But it doesnt work in my case.

    I think it’s because my submenu profile item is built (not from me) with this code in function.php:

    add_filter( 'wp_nav_menu_items', 'bpfr_custom_setup_nav', 10, 2 );

    bpfr_custom_setup_nav function returns an item containing an ul list. Each li element is built in this way:

    <li role="..." class="..."><a href="'. bp_get_loggedin_user_link() .'test-page/" class="..."><span>Test</span></a></li>
    

    But, if i create a test-page in wp, when i push the submenu Test link, I have an 404 error.

    Can someone help me?

    W.P. version: 4.9.8
    B.P. version: 3.1.0
    Theme: Avada child

  • You must be logged in to reply to this topic.
Skip to toolbar