Hab hier nen kleines Problem mit der Darstellung der Vorschau auf meiner Startseite.
Und zwar ist zwischen den Posts eine Trennlinie, die via Bild erzeugt wird und einen bestimmten Abstand zum Post selber hat. Im Optimalfall wird die Vorschau "Excerpt" mit 3 Zeilen ausgegeben, aber manchmal sind es auch nur zwei oder vier und dann sitzt eben diese Linie zu hoch oder zu niedrig.
Kann man dem Vorschau Content (roter bereich) also auch mit Thumbail in einen eigenen Div packen? So könnte man die Abstände genau festlegen, so wie man es z.b. auch mit der Überschrift oder unten der Kategorie machen kann? Momentan sieht es so aus.
ZitatAlles anzeigen<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div style='float:left;width:480px;'><div style='float:left;width:370px;'><h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></div><div style='float:right; width:110px; text-align:right'><class="postdate"><?php the_time('d/m/Y')?> | <class="posttime"><?php the_time('G:i') ?></div></div>[COLOR="Red"]----->[/COLOR]
<div class="entry">
<a href="<?php the_permalink(); ?>"><?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail (array(125,90,), array("class" => "alignleft post_thumbnail")); } ?></a><?php the_excerpt('<strong>Read more »</strong>'); ?></div>[COLOR="Red"]----->[/COLOR]
<div style='float:left;width:480px;text-align:right;margin-top: -10px;'><?php the_category(' ') ?> | <?php comments_popup_link(__('',TEMPLATE_DOMAIN), __('1',TEMPLATE_DOMAIN), __('%',TEMPLATE_DOMAIN)); ?> <img src="wp-content/themes/2011/images/comments.gif" /></div>