Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP post-form and redirect to subnav

  • @drvdb

    Participant

    Hello,

    I have got a question. I have insert the following code to members/activity.php to include the post-form.

    if ( is_user_logged_in()&&( '' == bp_current_action() || 'just-me' == bp_current_action() ) )
    locate_template( array( 'activity/post-form.php', ), true ) ;

    It did work fine till I insert the following code to the BP-Custom.php

    function bp_change_activity_subnav_default() {

    if ( bp_is_user_activity() ) {

    $args = array(
    'parent_slug' => 'activity',
    'subnav_slug' => 'mentions'
    );

    bp_core_new_nav_default($args);

    }

    }
    add_action('bp_setup_nav', 'bp_change_activity_subnav_default', 5);

    With this I want to redirect profile directly to the Mentions page. The code above is also working great, but together they don’t work. When directing to a subnav, the post-form does not show up. What I want is them to work together. Can someone help me where I make the mistake?

    Thank you in advanced.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘BP post-form and redirect to subnav’ is closed to new replies.
Skip to toolbar