У меня есть настраиваемое поле, в котором пользователь может выбрать фон div. Однако в правом верхнем углу экрана отображается следующее:
35`` 4c5a6729201043.55e72a8144693`` image / jpeg, http://localhost:1337/kite/wp-content/uploads/2015/11/4c5a6729201043.55e72a8144693.jpg, 1200, 1200, Array ');
Код, который я использую, чтобы позволить пользователю выбирать фон (а также его содержимое):
<?php $image = get_field( 'slide_bg1' );
if ( !empty( $image ) ) { ?>
<div class="slide1" style="background-image:url('<?php echo $image['url']; ?>');">
<?php the_field('slide_bg1'); ?>');<div class="slide1-cont"><p class="slide-text"><h1><?php the_field('slide_title1'); ?></h1><img src="<?php bloginfo('template_directory')?>/images/line.png" /></p>
<p><?php the_field('slide_content1'); ?></p></div>
</div>
<?php } ?>
var_dump из $ image:
array (10) {["id"] => int (35) ["alt"] => строка (0) "" ["title"] => строка (28) "4c5a6729201043.55e72a8144693" ["caption"] => строка (0) "" ["description"] => строка (0) "" ["mime_type"] => строка (10) "image / jpeg" ["url"] => строка (86) "http://localhost:1337/kite/wp-content/uploads/2015/11/4c5a6729201043.55e72a8144693.jpg "[" width "] => int (1200) [" height "] => int (1200) [" sizes "] => массив (9) {["thumbnail"] => string (94) "http://localhost:1337/kite/wp-content/uploads/2015/11/4c5a6729201043.55e72a8144693-150x150.jpg" ["thumbnail-width"] => int (150) [" thumbnail-height "] => int (150) [" medium "] => string (94)" http://localhost:1337/kite/wp-content/uploads/2015/11/4c5a6729201043.55e72a8144693-300x300.jpg "[" medium-width "] => int (300) [" medium-height "] => int (300) ["large"] => string (96) "http://localhost:1337/kite/wp-content/uploads/2015/11/4c5a6729201043.55e72a8144693-1024x1024.jpg "[" large-width "] => int (900 ) ["большая высота"] => int (900)}}
Снимок экрана в верхнем левом углу
Снимок экрана настраиваемого поля
Как мне избавиться от этого текста? Это ошибка?