Wordpress - Latest Posts
Hallo,
Ich habe eine Seite mit Wordpress erstellt, habe aber ein Problem.
In der Index.php ist irgendwie festgelegt dass nur ein Beitrag und dann die latest posts angezeigt werden. ich will dass auf der ersten seite aber 10 posts angezeigt werden.
Wie mache ich das? :-)
Danke für die Hilfe.
Index.php:
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); $loopcounter++; ?>
<?php if ($loopcounter == 1) : ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="details_small">
<span class="date"><?php the_time('F j, Y') ?> |
</span><span class="date"><?php the_category(', ') ?>
| <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</span>
<?php the_content(__('(more...)')); ?>
</p>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<h2>Not found</h2>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
</div>
<?php endif; ?>
<?php if (have_posts()) : ?>
<div>
<h2><?php _e('Latest posts:'); ?></h2>
<ul class="recenti">
<?php while (have_posts()) : the_post(); $loop2counter++; ?>
<?php if ($loop2counter > 1 and $loop2counter < 10 ) : ?>
<li class="sinistro"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> # <?php comments_popup_link(0, 1, '%','no-back',0); ?>
</li><li class="destro"><?php the_time('F j, Y') ?></li>
<?php endif; ?>
<?php endwhile; ?>
<li class="clear"> </li>
</ul>
<hr class="clear" />
</div>
<?php endif; ?>
<?php get_footer(); ?>
|