title: Advanced Custom Fields get sub field slide image
body: <p>When i use this type of code </p>
  
  <pre><code>&lt;?php echo get_sub_field('slide_image')['url']; ?&gt;
  </code></pre>
  
  <p>then it's give me a </p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '[', expecting ',' or ';' in
    /home/sites/xyz.com/public_html/wp-content/themes/abc/partials/banner-images.php
    on line 9</p>
  </blockquote>
  
  <p>this sort of error so what can i do in this situation. my total code is below </p>
  
  <pre><code>&lt;?php if(have_rows('banner_slides')): // if have rows ?&gt;
  
      &lt;div class="slideshow slideshow--banner" data-palm="palm-hidden"&gt;
  
          &lt;span id="prev" class="cycle-prev"&gt;&lt;&lt;/span&gt;
  
          &lt;?php while ( have_rows('banner_slides') ) : the_row(); // Loop through slides ?&gt;
  
              &lt;div class="slideshow__slide" style="background-image: url(&lt;?php echo get_sub_field('slide_image')['url']; ?&gt;);"&gt;
  </code></pre>