Hallo allerseits,
ich habe ein Problem, dem ich einfach nicht auf die Schliche komme.
Wordpress fügt nach einem Artikel mehrere <li></li> hinzu, ohne dass ich dies irgendwo bewusst definiert hätte.
Ich frage meine Artikel so ab:
PHP
<?php if (have_posts()) : ?>
<?php query_posts(array('category_name' => 'Home')); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="homepost">
<?php the_post_thumbnail('home'); ?>
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
<div class="clear"></div>
</div>
<?php endwhile; endif; ?>
Alles anzeigen
Wenn ich den Quelltext des Browsers anschaue sieht diese Stelle so aus:
PHP
<div class="homepost">
<img width="350" height="167" src="Pfad zum Bild" class="attachment-home wp-post-image" alt="summerjams" title="summerjams" /> <h3>Summer Jams 2010</h3>
<p>Gallia est omnis divisa in partes, tres quarum unam incolunt Belgae, aliam Aquitani tertiam.</p>
<p><a href="erleben">WEITER ></a></p>
</li><li></li><li></li><li></li><li></li><li> <div class="clear"></div>
</div>
Hat jemand eine Idee, woher diese <li></li> kommen? Das Problem ist, dass der Internet Explorer 8 im Kompatibilitätsmodus die Listenpunkte darstellt, sodass meine Box leider viel zu gross wird.