Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How would I get the thread link, or parent activity id, given the comment ID?

@shanebp

Moderator

You should state the versions of BP & WP being used.

You can always query the db directly.
In this case, probably:

global $bp, $wpdb;
$wpdb->get_var( "SELECT secondary_item_id FROM {$bp->activity->table_name} WHERE id = $comment_id ");

or maybe

global $bp, $wpdb;
$wpdb->get_var( "SELECT item_id FROM {$bp->activity->table_name} WHERE id = $comment_id ");
Skip to toolbar