April 4, 2014 at 1:24 am 17981
|Jeff Fisher||I am using the advanced custom fields (ACF) plugin and need to drop an ACF created image onto my page. When I do the insert, all that gets shown is the image ID. The code shows and I get a broken link pic on my page. I have the ACF image element set to record ID, so I think this should work. Any ideas?|
April 4, 2014 at 6:57 am 17995
So, you are using WPUF from frontend to insert/upload image or from backend by using ACF?
If by WPUF, then check Documentation here: http://docs.wedevs.com/showing-meta-fields-in-frontend/
April 4, 2014 at 7:42 am 18004
Still not working…
ACF meta field is “coupon_img”
The following code:
ID, ‘coupon_img’ );
Is not showing the image. Any other ideas?
Should the ACF image be added as an Image Object, Image URL, or Image ID
April 4, 2014 at 7:49 am 18007
If i am not wrong then, ACF add
at front on each custom field’s meta_key by default? isn’t it?
April 4, 2014 at 8:09 am 18008
Like this? $images = get_post_meta( $post->ID, ‘acf_coupon_img’ );
April 4, 2014 at 9:00 pm 18027
When an image is saved to the database, how is it saved?
Is it an object, ID or URL? Depending on how it is saved, I have different ways to show the image.