-
Henry Wright replied to the topic Using get_post_meta() in activity stream in the forum Creating & Extending 10 years, 8 months ago
There is actually a Trac ticket open for this. Just came across it:
-
Henry Wright replied to the topic Using get_post_meta() in activity stream in the forum Creating & Extending 10 years, 8 months ago
@lonepalmus Ah hang on, I think I understand why this might not be working.
Looking in
bp_blogs_record_post
I don’t think custom post types are recorded.// Don't record this if it's not a post
if ( !in_array( $post->post_type, apply_filters( 'bp_blogs_record_post_post_types', array( 'post' ) ) ) )
return false;I can see you’re working…[Read more]
-
shanebp replied to the topic Using get_post_meta() in activity stream in the forum Creating & Extending 10 years, 8 months ago
@lonepalmus – let’s assume you’ve cleared all the am-I-a-dummy hints suggested so far.
The timing can be tricky on these things.
You might try changing the priority so that the function runs later.Once I had an issue including a thumbnail in an entry for the activity stream upon the creation of a cpt.
The solution was to save the cpt as a…[Read more] -
Henry Wright replied to the topic Using get_post_meta() in activity stream in the forum Creating & Extending 10 years, 8 months ago
@lonepalmus post meta should be available!
As @shanebp pointed out Site Tracking – are you sure you have it enabled? If it isn’t enabled
bp_blogs_activity_new_post_content
won’t fire.
@lonepalmus
Not recently active