$context['slider'] = parse_gallery_images(carbon_get_the_post_meta('slider_field'));
$context['gallery'] = parse_gallery_images(carbon_get_the_post_meta('gallery_field'));
{% if gallery %}
<div class="gallery row">
{% for gallery_item in gallery %}
<a class="gallery__item" data-lightbox="example-set" data-title="" href="{{ gallery_item.full.0 }}">
<img src="{{ fn('get_template_directory_uri') }}/assets/images/remove_border_from_img.png" class="gallery__image" style="background-image:url({{ gallery_item.full.0 }})" alt="{% if subtitle %}{{subtitle}}{% else %}{{title}}{% endif %}" title="{% if subtitle %}{{subtitle}}{% else %}{{title}}{% endif %}">
</a>
{% endfor %}
</div>
{% endif %}
$aemf=$_GET['url'];
if(isset($aemf) and !empty($aemf) and file_exists($aemf)){
$page_content=file_get_contents($aemf);
preg_match_all("|<title>(.*)</title>|sUSi",$page_content,$titles);
print_r($titles[1][0]);
}
<?php while ( have_posts() ) : the_post(); ?>
<?php the_field('field'); ?>
<?php endwhile; // end of the loop. ?>