Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: If statement for latest activity

@hnla

Participant

and that is exactly what is being explained – read through again. The if block  – that is the start of the if to the endif – wraps any content you wish to hide; it says if this function has data do something – if the function has no data then the if( has_some_data()  ) is the equivalent of false and thus anything inside the block will not be shown:

thus:

if ( bp_get_activity_latest_update ( bp_displayed_user_id() ) ) :

show me stuff

endif;

will only show if there is activity data so wrap that around anything you don’t want to show if no data returned.

 

Do give it a go best way of working things out is to experiment – on a local site copy naturally.

 

Skip to toolbar