• Hi,

    Is there someone there can tell me why I get this:
    unexpected ‘endwhile’ (T_ENDWHILE) in your code

    Here is my some of my code.

    <?php
    function sk_do_post_content() {
          $images = get_field('gallery');
    
          if( $images ): ?>
              <div id="slider" class="flexslider">
                  <ul class="slides">
                      <?php foreach( $images as $image ): ?>
                          <li>
                              <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                              <p><?php echo $image['caption']; ?></p>
                          </li>
                      <?php endforeach; ?>
                  </ul>
              </div>
          <?php endif; ?>
    }
    ?>
    
    				</footer> <!-- end article footer -->
    
    	 ?php if ( $cb_comments_onoff == 'cb_comments_on' ) { comments_template(); } ?>			
    
    						<?php endif; ?>
                <?php endwhile; ?>
    
    					</div> <!-- end #main -->
    
    					<?php get_sidebar('mods'); ?>
    
    			</div> <!-- end #cb-content -->
    
    <?php get_footer(); ?>

    Thanks
    //Asger

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Little endwhile problem’ is closed to new replies.