Using get_post_meta() in activity stream
-
Hi guys,
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_action
and 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?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Using get_post_meta() in activity stream’ is closed to new replies.