Get activity item title – best option
What is the best option to get the title of an activity item?
I made this.
<?php $activity_item_title = get_post( bp_get_activity_secondary_item_id() ); $activity_item_title = $activity_item_title->post_title; ?> ... <?php echo $activity_item_title; ?> ...
Or should I get the action column in the wp_bp_activity database table. This is a string glued all together from multiple parts and start stripping/trimming everything around the title.
- You must be logged in to reply to this topic.