Hey ho =D
Ich bin gerade dabei mir einen Blog zu erstellen (mein erster und demnach habe ich relativ wenig Ahnung) und natürlich habe ich dabei einige Probleme.
Bis jetzt lies sich alles gut mithilfe der Suchfunktion hier lösen, aber nun weiß ich echt nicht mehr weiter =(
Wenn ich auf meinem Blog bei der suche etwas eingebe, kommt folgendes:
Zitat
Parse error: syntax error, unexpected T_ENDIF in /data/multiserv/users/346062/projects/625593/www/wp-content/themes/elements_10/search.php on line 31
Besagte line 31 sieht aus wie folgt:
Php ist nicht gerade meine Baustelle und die Syntaxe sind mir nicht vertraut. Aber eigentlich müsste das doch stimmen oder :confused:
Ich poste vorsichtshalber mal die ganze search.php =D
<?php get_header(); ?>
<div id="main">
<div id="content">
<!-- Loop Begins -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="intro">
<span class="thumbnail">
<a href="<?php the_permalink() ?>" class="thetip" title="<?php the_title() ?> :: <?php the_content_rss('', TRUE, '', 50); ?>"><img src="<?php $key="thumbnail"; echo get_post_meta($post->ID, $key, true); ?>" alt="thumb"/></a>
</span>
<div class="intropost">
<h3><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3>
<p class="introcontent"><?php the_content_rss('', TRUE, '', 50); ?></p>
<div class="introinfo">
<a href="<?php the_permalink() ?>#comments"><span class="comments"><p><?php comments_number('0', '1', '%'); ?></p></span></a>
<span class="date"><p><?php the_time('F j, Y'); ?></p></span>
</div>
</div>
</div>
<?php endwhile; else: ?>
<?php endif; ?>
<!-- Loop Ends -->
<div class="intro">
<span class="thumbnail">
<img src="<?php bloginfo('template_url'); ?>/images/404.jpg"/>
</span>
<div class="intropost">
<h3>Sorry, Nothing Here by That Name</h3>
<p>You seem to have found a mis-linked page or search query with no associated results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
</div>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Alles anzeigen
Könnte mir bitte jemand sagen, was das Problem ist ? =D Vielen Ddank im Vorraus :mrgreen: