Hi, is there a way to pull the featured image for an event into the calendars td tag as inline css for the table cell background inside the table.php template. I’m fine with the CSS part and calling the correct image, I think I’ve come unstuck as to the right place I should be running this within the loop.
I’ve tried the following code to call up the image:
wp_get_attachment_url( get_post_thumbnail_id($post->ID) )
and this works fine enclosed by the td tags to pull the image url for use within a regular image tag inside the calendar day cell but if I try to fetch the image with the above code directly above the td tags so I can pull it into the td tag as inline css it doesn’t work.
Sure I’m missing something really simple, really appreciate any help on this.