Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to get post images in Activity if theme post has custom fields for images?


Nahum
Participant

@nahummadrid

Still not able to find a way to do this, I’ve only come across this thread from a while back.

https://buddypress.org/forums/topic/displaying-custom-fields-in-home-widgets

My theme uses custom fields to set an image in a post. I don’t insert it in the post editor. So these images don’t get pulled into the activity like they would if they were inserted.

<?php echo get_post_meta( $post->ID,”custom-field-name”, $single=true ) ; ?>

Skip to toolbar