Reputation
1,099
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 12 19
Newest
 Yearling
Impact
~106k people reached

  • 0 posts edited
  • 0 helpful flags
  • 76 votes cast
Mar
20
awarded  Yearling
Sep
14
awarded  Popular Question
Aug
24
awarded  Popular Question
Jun
12
awarded  Necromancer
May
29
awarded  Notable Question
Mar
20
awarded  Yearling
Dec
9
awarded  Famous Question
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