title: Parse error: syntax error, unexpected 'endif' (T_ENDIF)?
body: <p>I getting error with php endif, couldn't find the error. here I have given my code. please help me to fix this</p>
  
  <pre><code>       &lt;?php if( have_rows('home-video-slider') ): ?&gt;
              &lt;?php while( have_rows('home-video-slider') ): the_row(); 
                $video_banner = get_sub_field('video-banner');
               ?&gt;
               &lt;div class="item"&gt;
                  &lt;div class="fm-video-banner"&gt;
                          &lt;?php if( $video_banner ); ?&gt;
                          &lt;img  src="&lt;?php echo $video_banner['url']; ?&gt;"/&gt;
                          &lt;?php endif; ?&gt;
  
                      &lt;a class="popup-youtube fm-play-icon" 
                        href="https://www.youtube.com/embed/5ktgB9hlETw"&gt;
                          &lt;span&gt;
                              &lt;i class="fa fa-play" aria-hidden="true"&gt;&lt;/i&gt;
                          &lt;/span&gt;
                      &lt;/a&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;?php $p++; endwhile; ?&gt;
       &lt;?php endif; ?&gt;
  </code></pre>