ich möchte gerne in folgenden Code
PHP
<?php if (have_posts()) : ?>
<? $post_counter = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<? if($post_counter == 0) { ?>
<div class="gro" id="post-<?php the_ID(); ?>">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<div class="post">
<?php the_content('Weiterlesen »<br />'); ?>
<p style="text-align:right;">
<?php edit_post_link('Bearbeiten', '', ''); ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment.png" alt="" /> <?php comments_popup_link('Kommentieren »', '1 Kommentar »', '% Kommentare »'); ?>
</p>
</div>
</div>
<? $post_counter++ ?>
<? } else if($post_counter > 0) { ?>
<div class="klei" 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 class="post">
<?php the_excerpt(); ?>
<p style="text-align:right;"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanenter Link zu <?php the_title(); ?>">Weiterlesen »</a></p>
<br />
<p style="text-align:right;">
<?php edit_post_link('Bearbeiten', '', ''); ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment.png" alt="" /> <?php comments_popup_link('Kommentieren »', '1 Kommentar »', '% Kommentare »'); ?>
</p>
</div>
</div>
<? if($post_counter % 2 == 0) { echo ""; } ?>
<? $post_counter++ ?>
<? } ?>
<?php endwhile; ?>
Alles anzeigen
einfügen, aus welcher cat die Beitröge kommen sollen und wie viele angezeigt werden sollen.
Wie machen ich das ?