I'm trying to dynamically add background inside CSS using php, using the Wordpress post image.
background: <?php if(has_post_thumbnail()){
$img = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'destacados');
echo 'url(".$img['0'].") no-repeat center' } ?>;