At my test site, I am trying to do different backgrounds for each page.
I have a custom field called background-image with a url from the media area.
I have the following just have the header call and before content:
<style type=“text/css”>
body {
background-image: url('<?php echo get_post_meta($post->ID, ‘background-image‘, true); ?>');
}
</style>
I don't see it's working and when I look at the code, it's outputs:
<style type=“text/css”>
body {
background-image: url('Array')
}
</style>
I cannot figure out what I'm doing wrong. I've tried Googling the answer but all information indicates I'm doing the right thing.
Any ideas?
Thanks,
Barb