Ich bin auf einen Effekt gestoßen für welchen ich keine Erklärung finde.
Bei Verwendung von query_post('showposts=1') werden 3 Posts angezeigt.
Bei der Fehlersuche stellte sich nun heraus, dass für showposts <7 immer die falsche Zahl von Beiträgen angezeigt wird.
1 --> 3 Posts
2--> 4 Posts
3 --> 4 Posts
5 --> 6 Posts
6 --> 7 Posts
>6 alles i.O
Hier der verwendete Code
PHP
<?php //The Query
query_posts('showposts=12'); //The Loop
if ( have_posts() ) : while ( have_posts() ) : the_post();
?>
<!-- Anzeige -->
<h5>Beitrag</h5>
<div class="post" id="post-<?php the_ID(); ?>">
<h3 class="posttitle">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?>
</a>
</h3>
</div>
<?php
endwhile; else:
?>
<p>Sorry, no posts matched your criteria.</p>
<?php
endif; //Reset Query
wp_reset_query();
?>
Alles anzeigen
Ist dies ein Bug?:confused: