ich hab jetzt hier mal meine angepasste archive.php
PHP
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header();
?>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
Archiv der Kategorie <?php single_cat_title(); ?>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
Tagesarchiv für den <?php the_time('j. F Y'); ?>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
Monatsarchiv für <?php the_time('F Y'); ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
Jahresarchiv für <?php the_time('Y'); ?>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
Autoren Archiv
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
Blog Archiv
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div class="container_main">
<div class="container_content">
<?php the_content(''); ?>
</div>
<?php endwhile; ?>
<br style="clear:both;float:none;" />
<?php next_posts_link('« Vorherige Einträge') ?>
<?php previous_posts_link('Nächste Einträge »') ?>
<?php else :
if (is_category()) // wenn es ein kategorie archiv ist
printf("<h2 class='center'>Leider, derzeit keine Artikel in der Kategorie: %s </h2>", single_cat_title('',false));
else if (is_date()) // wenn es ein tagesarchiv ist
echo("<h2>Leider gibt es keine Artikel.</h2>");
else if (is_author()) // wenn es ein autorenarchiv ist
printf("<h2 class='center'>Leider,%s hat noch keinen Artikel geschrieben.</h2>", get_userdatabylogin(get_query_var('author_name'))->display_name);
else
echo("<h2 class='center'>Leider, kein Artikel gefunden. Die Suche hilft weiter:</h2>");
get_search_form();
endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
</div>
Alles anzeigen
Wie setze ich denn diese Offset Geschichte ein?