- This topic has 3 replies, 2 voices, and was last updated 1 year, 10 months ago by .
-
Topic
-
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
please help
thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.