Gettinng id of the activity status
I’m trying to fetch the content data from wp_db_activity table in order to escape from HTML tags that are wrapped around the content. I need this since I want to implement an audio player for links to mp3 files.
The `bp_activity_content_body()` gives me results like
while I need only the link
`http: // link_to_mp3_file`
Using the following code in bp-themes/bp-default/activity/entry.php, I got only the activity ID, but cannot fetch the content data.
`$content = $wpdb->get_results($wpdb->prepare(“SELECT content FROM $bp->activity->table_name WHERE id = %d” , bp_activity_id()));
I’m new to BuddyPress, and still learning the code, so any help would be great.
Thanks in advance
- The topic ‘Gettinng id of the activity status’ is closed to new replies.