I want to retu an image from a custom post and i have :
$pidd=$row1['id_promotora'];
$imageid=get_post_meta( $pidd, '_simple_fields_fieldGroupID_5_fieldID_2_numInSet_0', $single = true );
echo "imagemid:".$imageid."<br><br>";
echo wp_get_attachment_image($imageid, 'fullmark');
the output of $pidd is my post id 3245, if i use
$imageid=get_post_meta( 3245, '_simple_fields_fieldGroupID_5_fieldID_2_numInSet_0', $single = true );
it works fine..but when i user the variable $pidd it dosent... strange thing... any clue ?
