Hi, man kann ja in den Einstellungen des Wordpress einstellen, dass er auf der index.php entweder die letzten XX Beiträge anzeigt, oder dass er die Beiträge der letzten XX Tage anzeigt.
Wähle ich das erste (XX Beiträge) klappt die Auflistung mit den einzelnen Seiten ohne Probleme.
Wähle ich aber das zweite (letzte XX Tage) dann habe ich einmal die erste Seite mit den ersten XX Tagen und die zweite Seite mit den zweiten XX Tagen. Die Tage die davor waren kann ich aber nicht auswählen, weil ich auf der zweiten Seite nur einen Link zur Hauptseite bekomme. Eine Anwahl über den Kalender ist natürlich möglich, aber da halt wieder nur einzelne Tage...
Beispiel: http://www.funky-descri.be
Aktuell ist eingestellt, dass die Beiträge der letzten sieben Tage angezeigt werden.
Und zur vollständigkeit noch die Frage: Wie bekomme ich hin, dass ich auch noch weiter "zurück sehen" kann als nur zwei Seiten?
Liebe Grüße und lasst euch nicht wegwehen ;) - Kevin
Edit:
Benutze das "freshy theme" von http://www.jide.fr/
hier der quelltext der index.php
<?php ob_start(); ?>
<?php get_header(); ?>
<div id="content">
<!-- pages -->
<?php if (is_page() and ($notfound != '1')) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Read',TEMPLATE_DOMAIN); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content('<span class="readmore">'.__('Read the rest of this entry »',TEMPLATE_DOMAIN).'</span>'); ?>
</div>
</div>
<?php if ($user_ID) : ?>
<h3><?php _e('Actions',TEMPLATE_DOMAIN); ?></h3>
<ul class="postmetadata">
<li class="with_icon"><img class="icon" src="<?php echo get_bloginfo('stylesheet_directory') ?>/images/icons/edit-icon-16x16.gif" alt="edit" /> <?php edit_post_link(__('Edit',TEMPLATE_DOMAIN),'',''); ?></li>
</ul>
<?php endif; ?>
<?php comments_template(); ?>
<?php endwhile; ?>
<!-- blog -->
<?php elseif (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Read',TEMPLATE_DOMAIN); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small class="date">
<span class="date_day"><?php the_time(__('j',TEMPLATE_DOMAIN)) ?></span>
<span class="date_month"><?php the_time(__('m',TEMPLATE_DOMAIN)) ?></span>
<span class="date_year"><?php the_time(__('Y',TEMPLATE_DOMAIN)) ?></span>
</small>
<div class="entry">
<?php the_content('<span class="readmore">'.__('Read the rest of this entry »',TEMPLATE_DOMAIN).'</span>'); ?>
</div>
<?php edit_post_link(__('Edit',TEMPLATE_DOMAIN), '<small class="postmetadata">'.__('Edit',TEMPLATE_DOMAIN).' : ', '</small><br/>'); ?>
<small class="postmetadata"><?php _e('Comments',TEMPLATE_DOMAIN); ?> : <?php comments_popup_link(__('No Comments »',TEMPLATE_DOMAIN), __('1 Comment »',TEMPLATE_DOMAIN), __('% Comments »',TEMPLATE_DOMAIN)); ?></small>
<br/>
<small class="postmetadata"><?php _e('Author',TEMPLATE_DOMAIN); ?> : <?php the_author() ?> | </small>
<small class="postmetadata"><?php _e('Categories',TEMPLATE_DOMAIN); ?> : <?php the_category(', ') ?></small>
<?php if(function_exists('the_bunny_tags')) : ?>
<br/>
<small class="postmetadata technorati_tags">
<?php the_bunny_tags('<span class="technorati_tags">Tags : </span>', '', ', '); ?>
</small>
<?php endif; ?>
</div>
<hr style="display:none;"/>
<?php endwhile; ?>
<p class="navigation">
<span class="alignleft"><?php next_posts_link(__('« Previous Entries',TEMPLATE_DOMAIN)) ?></span>
<span class="alignright"><?php previous_posts_link(__('Next Entries »',TEMPLATE_DOMAIN)) ?></span>
</p>
<!-- nothing found -->
<?php else : ?>
<div class="post" id="post-none">
<h2 class="center"><?php _e('Not found',TEMPLATE_DOMAIN); ?></h2>
<p class="center"><?php _e("Sorry, but you are looking for something that is not here",TEMPLATE_DOMAIN); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
</div>
<?php endif; ?>
<!-- homepage -->
<?php if(function_exists('yy_is_home')) : ?>
<?php if(yy_get_lang()=="fr_FR") : ?>
<?php if(yy_is_home()==true) : ?>
<hr/>
<?php if(function_exists('c2c_get_recent_posts')) : ?>
<div class="highlight_box" id="post-last-works">
<h2><?php _e('Last works',TEMPLATE_DOMAIN); ?></h2>
<ul>
<?php c2c_get_recent_posts(3, '<li>%post_URL%<br />%post_excerpt_short%</li>', '5'); ?>
</ul>
</div>
<?php endif; ?>
<?php if(function_exists('c2c_get_recent_posts')) : ?>
<div class="highlight_box" id="post-last-news">
<h2><?php _e('Last news',TEMPLATE_DOMAIN); ?></h2>
<ul>
<?php c2c_get_recent_posts(3, '<li>%post_URL%<br />%post_excerpt_short%</li>', '4 21'); ?>
</ul>
</div>
<?php endif; ?>
<?php endif; ?>
<?php else : ?>
<?php if(yy_is_home()) : ?>
<hr/>
<?php if(function_exists('c2c_get_recent_posts')) : ?>
<div class="highlight_box" id="post-last-works">
<h2><?php _e('Last works',TEMPLATE_DOMAIN); ?></h2>
<ul>
<?php c2c_get_recent_posts(3, '<li>%post_URL%<br />%post_excerpt_short%</li>', '23'); ?>
</ul>
</div>
<?php endif; ?>
<?php if(function_exists('c2c_get_recent_posts')) : ?>
<div class="highlight_box" id="post-last-news">
<h2><?php _e('Last news',TEMPLATE_DOMAIN); ?></h2>
<ul>
<?php c2c_get_recent_posts(3, '<li>%post_URL%<br />%post_excerpt_short%</li>', '9 24'); ?>
</ul>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<hr/>
<!-- sidebar -->
<?php get_sidebar(); ?>
<br style="clear:both" /><!-- without this little <br /> NS6 and IE5PC do not stretch the frame div down to encopass the content DIVs -->
</div>
<!-- footer -->
<?php get_footer(); ?>
<? ob_end_flush();?>
Alles anzeigen