$("cелектор заголовка в модалке").html('Оформить заявку на услугу ' + '<br>' + card_heading);
<section class="services">
<div class="container">
<h3 class="services__heading section-heading"><?php the_title(); ?></h3>
<?php if( have_rows( 'page_services_list' ) ) : ?>
<div class="services__content">
<?php while( have_rows( 'page_services_list' ) ) : the_row();
$link = get_sub_field( 'page_services_link' );
$name = get_sub_field( 'page_services_title' );
$icon = get_sub_field( 'page_services_icon' );
?>
<a href="<?php echo $link ?>" class="services__item">
<?php if( $icon ) : ?>
<img src="<?php echo $icon['url']; ?>" alt="services-icon" class="services__img">
<?php else : echo 'Картинки нет' ?>
<?php endif; ?>
<p class="services__text"><?php echo $name; ?></p>
</a>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>
</section>
<section class="services">
<div class="container">
<h3 class="services__heading section-heading"><?php echo get_field( 'page_services_title' ) ?></h3>
<?php if( have_rows( 'page_services_list' ) ) : ?>
<div class="services__content">
<?php while( have_rows( 'page_services_list' ) ) : the_row();
$link = get_sub_field( 'page_services_item_link' );
$name = get_sub_field( 'page_services_item_title' );
?>
<a href="<?php echo $link; ?>" class="services__item">
<?php if( $icon = the_sub_field( 'page_services_item_icon' ) ) : ?>
<img src="<?php echo $icon['url']; ?>" alt="services-icon" class="services__img">
<?php endif; ?>
<p class="services__text"><?php echo $name; ?></p>
</a>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>
</section>
Я не могу каждому блоку в слайдере присвоить уникальный вывод заголовка(