- This topic has 2 replies, 2 voices, and was last updated 8 months, 1 week ago by .
i have a custom post type ‘stock’ with an advanced image field named ‘photo’.
I need to display the first image of my cpt (id=123) in a specific page.
i’ve tried this, but this doesn’t work
$images = rwmb_meta( 'photo', array( 'limit' => 1,'ID' => 123) ); $image = reset( $images );
Is it possible to do this ? if so, how?
- You must be logged in to reply to this topic.