Parse error: syntax error, unexpected end of file

Fermé
Alex - 19 mars 2017 à 18:19
 Utilisateur anonyme - 19 mars 2017 à 22:26
Bonjour,
Je sais que mon erreur viens d'un léger oublie mais j'ai beau chercher impossible de trouver d'ou viens mon erreur. Alors je poste mon code en espérant que qqn puisse m'aider.
Merci d'avance.

<?php get_header(); ?> 
<div class="container">
<div class="col-md-12">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array('posts_per_page' => 7, 'paged' => $paged );
query_posts($args); ?>

<?php if (have_posts()) : ?>
<?php $postcount = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php $postcount++; ?>

<?php if ($postcount == 1 && $paged == 1) : ?>
<div class="col-md-12">
<div class="post_thumbnail">
<?php
the_post_thumbnail();
?>
</div>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<label>
<?php the_time('j F Y') ?>
</label>
<div class="post_content">
<?php the_content(); ?>
</div>
</div>
<?php else : ?>
<div class="col-md-4">
<div class="post_thumbnail">
<?php
the_post_thumbnail();
?>
</div>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<label>
<?php the_time('j F Y') ?>
</label>
<div class="post_content">
<?php the_content(); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php get_footer(); ?>

1 réponse

Utilisateur anonyme
19 mars 2017 à 22:26
Bonsoir

Il te manque un endwhile.
0