- This topic has 3 replies, 2 voices, and was last updated 2 years, 10 months ago by .
hi support i am using function in loop to get the main image of image
while i get image of other post using
/////////////////////////////inside while loop ///////////////////////////
$main_images = rwmb_meta( 'gallery_upload', array( 'size' => 'full', 'limit' => 1 ) ,$post->requesting_post_id ); $main_image = reset( $main_images );
but when i use same function to get id of other post it return blank
$my_main_images = rwmb_meta( 'gallery_upload', array( 'size' => 'full', 'limit' => 1 ) ,$post_id ); $my_main_image = reset( $main_images ); $my_main_image i get empty value
- You must be logged in to reply to this topic.