Timeline for Advanced Custom Fields (ACF) Plugin - Random Image in Sidebar
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 14, 2014 at 0:55 | vote | accept | codeview | ||
Jan 13, 2014 at 23:42 | comment | added | codeview |
var_dump ($image); outputs: bool(false)
|
|
Jan 13, 2014 at 23:40 | comment | added | codeview |
var_dump ($attachment_id); outputs: string(58) "path- to-image". 58 being the post id and path-to-image is the full path on my site.
|
|
Jan 13, 2014 at 23:35 | answer | added | Seamus Leahy | timeline score: 0 | |
Jan 13, 2014 at 23:29 | comment | added | codeview | Yes, forgot to mention, I have the slide_photo field set to image ID, not object or URL. | |
Jan 13, 2014 at 23:21 | comment | added | patnz | Your code looks fine. Are you sure get_field('slide_photo') returns an image ID as opposed to an object or url. What do you get when you var_dump $attachment_id? What do you get when you var_dump $image? | |
Jan 13, 2014 at 23:10 | history | asked | codeview | CC BY-SA 3.0 |