Re: Add custom fields to activity stream
Latest attempts:
If I type in:
`function my_equipmeta() {
$my_equipmeta = ‘joe’;
//if (is_user_logged_in()) : {
echo ‘(‘ . $my_equipmeta . ‘)‘;
//}
//endif;
}
add_action( ‘bp_activity_entry_meta’, ‘my_equipmeta’ );`
I can see the name ‘joe’ in the activity. That’s a good start
If I input `$my_equipmeta = the_meta();`
I see some custom field info but not all of the info displayed for each post is the meta stored with that post. IE some custom fields are showing up in posts that do not have that info stored. In other words it doesn’t appear to be working the way I need it to.
Lastly:
If I input:
`$my_equipmeta = get_post_meta($post->ID, ‘Make’, true);`
I receive nothing in return.
I will keep tinkering but if anyone sees an error feel free to let me know. Thanks.