Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE)
-
Hello,
I’m getting the error: Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in C:\wamp\www\DW_WP_Sites\wp-content\themes\First\content.php on line 8
my code is the following:<?php get_header(); ?> <?php if( have_posts() ): while( have_posts() ): the_post(); ?> <?php get_template_part('content'); ?> <?php endwhile; endif; ?> <?php get_footer(); ?>
Everything is properly closed, pls.advice
Ivana
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE)’ is closed to new replies.