Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,892
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
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 ");