Hi. I'm trying to get a meta box field and insert in into my HTML as a background image. Here is my code:
<?php
$images = rwmb_meta( 'meta-about-image', 'type=image' );
foreach ( $images as $image )
{
echo "<a href='#' style='background: url('{$image['full_url']}');'></a>";
}
?>
On the front end, the HTML looks like this:
<a href="#" style="background: url(" http:="" localhost="" decoypro="" wp-content="" uploads="" 2015="" 10="" scott-about.jpg');'=""></a>
Obviously the full URL is not being added correctly. Any ideas why?