WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Strange error in template (4 posts)

  1. grosbouff
    Member
    Posted 6 years ago #

    Hello, I got an error at the line with my <?php else :?>, but I can't see what is wrong.
    Could you help me ?
    THanks !

    if (have_posts()) : ?>
    
    			<?php while (have_posts()) : the_post();
    
    			?>
    
    				<div class="post" id="post-<?php the_ID(); ?>">
    					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    					<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    					<small><div align="right"><?php the_translations() ?></div></small>
    
    					<div class="entry">
    						<?php the_content('Read the rest of this entry &raquo;'); ?>
    					</div>
    
    					<p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    				</div>
    
    			<?php endwhile; ?>
    
    			<div class="navigation">
    				<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    				<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    			</div>
    
    		<?php else : ?>
    
    			<h2 class="center">Impossible de trouver la page</h2>
    			<p class="center">D&eacute;sol&eacute;, mais la page n'a pas &eacute;t&eacute; trouv&eacute;e !</p>
    			<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    		<?php endif; ?>
  2. shadow
    Member
    Posted 6 years ago #

    Change this from <?php else : ?> to <?php else; ?>

  3. grosbouff
    Member
    Posted 6 years ago #

    It doesn't work either.

  4. grosbouff
    Member
    Posted 6 years ago #

    Ok I fixed it. No matter how... I don't know :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.