Skip to:
Content
Pages
Categories
Search
Top
Bottom
  • @mykrabuilding could it be that the two members you’re displaying haven’t made an activity update yet? Just a thought! If that is the case then it’ll just need a simple check introduced to see if the member has made an activity update – if they haven’t then display nothing, if they have then display the date.

  • Hi @mykrabuilding

    I’ve now had a chance to do this at my PC. Just tested this so it should work:

    $update = get_usermeta( bp_get_member_user_id(), 'bp_latest_update' );
    $activity = bp_activity_get_specific( array( 'activity_ids' => $update['id'] ) );
    $activity = $activity['activities'][0];
    echo…
    [Read more]

  • Hi @mykrabuilding

    To my knowledge, the time of the latest update isn’t recorded. The latest update info is stored in user meta. To get it you’d do something like:

    $update = get_usermeta( $user_id, 'bp_latest_update' );

    You then have the option to get either the activity ID or the content (no timestamp I’m afraid).

    echo $update['id'];
    echo…[Read more]

Skip to toolbar