Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Un errore :(

  1. #1

    Un errore :(

    Salve a tutti, ho un piccolo problema..
    Sto facendo un sito per alcuni miei amici, e quando vado a inserire il Template (Wordpress) mi da questo errore nell'Index:
    codice:
    <?php get_header(); ?>
    	
    	<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    	<div id="post-<?php the_ID(); ?>">
    
    		<h1 class="decay">"><?php the_title(); ?></h1>
    			
    		<div class="descr"><?php the_time('F jS, Y') ?> by <?php the_author() ?></div>
    
    		<div class="entry">
    
    			<?php the_content('Read the rest of this entry &raquo;'); ?>
    
    		</div>
    
    		<p class="postinfo">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','',' |'); ?> <?php comments_popup_link('No Comments &raquo;', '1 Comment &raquo;', '% Comments &raquo;'); ?></p>
    
    	</div>
    
    	<?php comments_template(); ?>
    
    		<?php endwhile; ?>
    
    	<p align="center"><?php next_posts_link('&laquo; Previous Entries') ?> <?php previous_posts_link('Next Entries &raquo;') ?></p>
    
    	<?php else : ?>
    
    	<h1 class="decay">Not Found</h1>
    
    	
    
    Sorry, but you are looking for something that isn't here.</p>
    
    	<?php endif; ?>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Vi sarei molto grato per la correzione del codice.

  2. #2
    Non ho capito che errore ti da'.

  3. #3
    Originariamente inviato da k.b
    Non ho capito che errore ti da'.
    Questo
    Parse error: syntax error, unexpected T_ELSE in /membri/emerald/www/index.php on line 27

  4. #4
    Sei sicuro di aver postato il codice di index.php? Sembra tanto quello di un single.php
    Anche perche' quello che hai postato e' corretto.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.