Hallo.
Ich binde mit folgendem Code alle News in der Kategorie 1 in eine Seite ein
PHP
<div class="wrap">
<div class="mainbox">
<?php get_sidebar(); ?>
<div class="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<?php $top_query = new WP_Query('showposts='); ?>
<?php while($top_query->have_posts()) : $top_query->the_post(); $first_post = $post->ID; ?>
<h1 class="news"> <?php the_title(); ?> </h1>
<strong><?php the_time(' F Y') ?> </strong><?php the_content();?>
<br />
<?php endwhile; ?>
</div>
<?php endwhile; else: ?>
<p class="sorrydialog">
<?php _e('Sorry, no posts matched your criteria.'); ?>
</p>
<?php endif; ?>
<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div>
</div>
</div></div>
<?php get_footer(); ?>
Alles anzeigen
Wie schaffe ich es denn nun, dass er nach beispielweise 10 Artikeln eine neue Seite erstellt, also das auf jeder Seite nur 10 Artikel stehen? Gibt es dafür ien Plugin oder kan ich den Code einfach etwas abändern? W
Danke für alle Tipps und Hilfen.
bg
Fisch