Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: get_post_meta doesn’t work in activity stream

@riddler84

Participant

So.. i have test it with the ID of an already existing post and the meta_value show up in the newly created activity.

$existing_post_id = 12345;

$cpt['content'] = get_post_meta( $existing_post_id, 'guide_description', true );

Then i have tried it again with the dynamically generated ID and the meta_value doesn’t show up. If i put this ID also right behind the get_post_meta function, only the ID will be visible, but not the meta_value.

$cpt['content'] = get_post_meta( $cpt['secondary_item_id'], 'guide_description', true ) . $cpt['secondary_item_id'];

Any Ideas? I don’t know how to fix this..

Skip to toolbar