Hallo Herr Kaiser

,
das doppelte Bildproblem habe ich gelöst. Einzig die Formatierung macht noch Sorgen. Eigentlich sollte der Text links, das Bild rechts stehen, eigentlich...
Hier nochmal der Link auf ne
Beispielseite
Ideen/ Vorschläge sind jederzeit willkommen...
Die single.php:
Zitat:
<?php get_header(); ?>
<div class="featured single">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="photo shadow-left"><br />
<div class="legend">
<h3><? the_title(); ?></h3>
<div class="notes">
<?php the_content(); ?>
</div>
<?php
$image = "";
$first_image = $wpdb->get_results(
"SELECT guid FROM $wpdb->posts WHERE post_parent = '$post->ID' "
."AND post_type = 'attachment' ORDER BY `post_date` ASC LIMIT 0,1"
);
if ($first_image) {
$image = $first_image[0]->guid;
}
?>
</div>
</div>
<!-- .legend --></div>
<?php endwhile; else: ?>
<h2>Sorry, no posts matched your criteria.</h2>
<?php endif; ?>
<div class="ffix"></div>
</div><!-- #featured -->
<?php get_footer(); ?>
|
Zitat:
Zitat von kaiser probier einfach einmal the_content raus nehmen. Du stellst ja ohnehin das Bild dar und ich nehm einmal an, dass Du das mit the_content() nochmals bekommst. Kannst zum Test einfach einmal Text dazu schreiben. Beim 2ten Bild müsste der dann auftauchen. |