WordPress.org

Forums

BuddyPress Groups Extras
[resolved] activity feed still default even when group extras tab first (2 posts)

  1. studioleland
    Member
    Posted 3 years ago #

    Having a lot of trouble making the group extras Page tab show up as the default tab instead of the activity feed. The extras tab is sorted to be the first tab and does show up highlighted but no page content is displayed only the activity feed content. Not even this fix works:

    function redirect_group_home() {
      global $bp;
      $path = clean_url( $_SERVER['REQUEST_URI'] );
      $path = apply_filters( 'bp_uri', $path );
      if (bp_is_group_home() && strpos( $path, $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['slug'] ) === false ) {
        if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == 'public') {
          bp_core_redirect( $path . 'gpages/' );
        }
      }
    }

    The content does show if you click on the tab but that defeats the purpose of being the first tab. My code above works to make any tab the default tab without group extras but I would like to be able to show the landing tab content from extras tab.
    http://wordpress.org/extend/plugins/buddypress-groups-extras/

  2. Slava UA
    Member
    Plugin Author

    Posted 3 years ago #

    but no page content is displayed only the activity feed content

    Fixed in upcoming version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Groups Extras
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic