Using get_post_meta() in activity stream
I am using buddypress 1.9.2 with wordpress 3.8.1 (no link atm, as it is localhost).
I thought it would be kinda straight foreword, but for some reason this isn’t working for me. I am hooking into
bp_blogs_activity_new_post_actionand trying to display a custom field for a post.
When I write
get_post_meta($post->ID, 'key', true)it doesn’t output anything. But when echoing out the ID by itself, it displays fine, so it should be able to get the post meta, right?
Does anyone know if this is possible?
- The topic ‘Using get_post_meta() in activity stream’ is closed to new replies.