1,024 reputation
817
bio website
location
age
visits member for 3 years, 8 months
seen Nov 11 at 1:52

Jul
2
awarded  Curious
Mar
20
awarded  Yearling
Mar
8
awarded  Nice Answer
Jan
13
awarded  Caucus
Jan
13
comment Advanced Custom Fields (ACF) Plugin - Random Image in Sidebar
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?
Sep
18
awarded  Self-Learner
Sep
5
awarded  Necromancer
Aug
19
awarded  Necromancer
Jun
24
answered Image resize using url parmater
May
18
answered How do I show data from gravity forms in my template?
Mar
20
awarded  Yearling
Jan
31
awarded  Revival
Jan
24
awarded  Nice Question
Oct
30
awarded  Popular Question
Aug
22
awarded  Notable Question
Jul
31
answered is_page conditional question
Jun
9
awarded  Tenacious
May
30
answered Gravity Forms field ID $entry not working
Mar
20
awarded  Yearling
Feb
7
answered Remove Ability for Other Users to View Administrator in User List?