Inserting ACF Images
Author | Posts |
---|---|
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 | |
Mahi | 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 | |
Jeff Fisher | 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 Thanks, Jeff
|
April 4, 2014 at 7:49 am 18007 | |
Mahi | 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 | |
Jeff Fisher | Like this? $images = get_post_meta( $post->ID, ‘acf_coupon_img’ );
|
April 4, 2014 at 9:00 pm 18027 | |
Jeff Fisher | 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. Thanks |