Skip to:
Content
Pages
Categories
Search
Top
Bottom

reorder the activities in activity stream


  • toite3
    Participant

    @toite3

    Hi,
    I am new to WordPress and Buddypress. I have managed to set up a basic site for my community and now I would like to make some feature update
    By default, the activities in the activity stream arranged based on the days it is created. I would like to make them to arrange based on the days of the last comment ( more like Facebook types). Could you kindly show me how to do this?
    Thank you very much and have a nice day 🙂

Viewing 1 replies (of 1 total)

  • Henry Wright
    Moderator

    @henrywright

    Try this:

    add_filter( 'bp_after_has_activities_parse_args', function( $retval ) {
        $retval['display_comments'] = 'stream';
        return $retval;
    } );

    Please note I haven’t tested.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar