I am getting this error after loading my php page:
Parse error: syntax error, unexpected end of file in /Applications/XAMPP/xamppfiles/htdocs/wordpress2/wp-content/themes/annonciation/page-42.php on line 77
I could understand that it means that I have opened a certain bracket or parenthasis somewhere, and didn't close it, but I can't for the love of god find it! Here is my code:
<?php get_header();?>
<div id="container">
<!-- Glossaire -->
<p class="titrep" style="padding-top:192px;">- Glossaire -</p>
<div id="alphabet">
<ul>
<?php
foreach(range('A','Z') as $i) {?>
<li>
<?php echo $i;?>
</li>
<?php
if($i=='Z')
{
break;
}
else{
?>
<li>.</li>
<?php }
}
?>
</ul>
</div>
<div id="mots">
<?php //$test=new WP_Query(array('post_type'=>'mots')); ?>
<?php //while ( $test -> have_posts() ) : $test -> the_post();?>
<?php
$args = array(
'post_type'=> 'mots',
'lettres' => 'alpha',
'order' => 'ASC'
);
$the_query = new WP_Query( $args );
if($the_query->have_posts() ) : {
while ( $the_query->have_posts() ) : $the_query->the_post();
//some code that is sure not making the error (i removed it and still getting the error)
endwhile;
}?>
</div>
<?php get_footer(); ?>
what could the problem be?
Line 77
? And shouldlettres
beletters
in your 2nd WP_Query argument?