Forums
Home / Plugin: Meta Box - WordPress Custom Fields Framework / plupload_image: Show first image only
(@koentjuh1)
7 years, 8 months ago
Hello,
I know how to show all images uploaded via plupload_image: http://pastebin.com/98ZZBvSZ
But what i want is only to show the first image.. is this possible?
WP version: 4.5.3 Metabox.io version: 4.8.7
Regards koen.
https://wordpress.org/plugins/meta-box/
(@rilwis)
You can add the limit=1 to the helper function, like this:
limit=1
$images = rwmb_meta( 'omheiningtype1_image', 'size=omheiningsize&limit=1' );
Thanks mate 🙂