Witam, mam problem z błędem
Parse error: syntax error, unexpected T_ENDWHILE in index.php on line 1
Problem pojawił się po przeniesieniu plików na inny serwer, na starym wszystko chodzi tak jak powinno.
Wiecie może jak to naprawić?
Kod z tego pliku to:
<?php
get_header();
get_sidebar();?>
<content>
<div class="row">
<div class="col-md-8 col-sm-12 col-lg-8">
<div class="container">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="row">
<div class="visible-lg-block visible-md-block" style="margin-top: 20px; display: block;"></div>
<div class="col-md-3 col-sm-5 col-lg-4 col-slg-4 col-f-4 col-fhd4 img-responsive img-news">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail( 'medium', 'class=img-responsive');
}
?></div>
<div class="col-md-5 col-sm-7 col-lg-5 col-slg-6 col-f-7 col-fhd-8">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p>
<?php the_content('Czytaj dalej ť'); ?>
</p>
<p class="text-muted small"><?php the_time('d-m-Y'); ?> | autor: <?php the_author(); ?> </p>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<br>
<div class="" style="margin-top: 20px; display: block;"></div>
</div>
</div>
<?php get_template_part('rightbar'); ?>
</div>
</div>
</content>
<?php get_footer(); ?>