Der gesamte Code sieht wie folgt aus:
Code:
<?php get_header(); ?>
<div id="content">
<?php query_posts('cat=18&showposts=2'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div id="cover">
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
<div class="tags"><?php st_the_tags();?></div>
<div class="the-following">The following postings could be interesting too:</div>
<div class="related-posts"><?php st_related_posts(""); ?></div>
<div class="posted-on">Posted on <?php the_time('F j, Y'); ?> under <?php the_category(', '); ?></div>
</div>
</div>
<div id="postmetadata">
<div class="alignright"><div class="p_comments"><?php comments_popup_link('Add comments', '1 comment', '% comments'); ?></div></div>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
</div>
<?php else : ?>
<div class="post">
<h1 class="title">Not Found</h1>
<p>I'm Sorry, The page you are looking is not here!!</p>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
So funktioniert er auch.
Wenn ich aber den zweiten vom vorherigen Posting mit einbauen möchte, steigt mir der Server aus und schreibt mir, dass ein ENDIF Fehler drin ist.
Weisst DU wie er zusammengefügt heissen müsste ?