Calling image from pod field
-
Follow up to my previous post, this time to call an image from a pod field.
Using
<?php echo get_post_meta( 56, 'photo', true ); ?>
(where ‘photo’ is the field in my pod where I upload an image) does not display the image. It just displays the word “Array” where the image should be. I would like to know why this is and how to rectify. Any help really appreciated.Ideally I would like to display the image as a background image, I guess by putting an inline css rule.
Here’s my code so far: https://pastebin.com/RkZ6hRg5
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Calling image from pod field’ is closed to new replies.