There is a code where in the background-image you need to inject php code
<div class="1" id="1" data-content-cover-id="1" data-content-cover-bg="1.jpg" data-content-cover-height="100vh" data-content-cover-parallax="fixed" style="background-image:url('1.jpg');height:100vh; "></div> I want to embed code in data-content-cover-bg = "1.jpg and in style =" background-image: url ('1.jpg')
<?php echo get_the_post_thumbnail($post->ID, 'big-thumb'); ?> When I insert this error comes out
" data-content-cover-height="100vh" data-content-cover-parallax="fixed" style="background-image:url('тут картинка видна');height:100vh; "> But not full page
mistake hike somewhere here
data-content-cover-bg="<?php echo get_the_post_thumbnail($post->ID, 'large'); ?>"
Когда вставляю вылезает такая ошибка- what error? What do you have in the error log on the server? - Vismanget_the_post_thumbnail()function displays the html-code of the image, not its address. That is, it will output not theпуть_к_изображению.jpg, but<img src="путь_к_изображению.jpg">- alenkins