PHP
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<p class="post-info"><?php the_author();?> on <?php the_time('d M Y'); ?></p>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a>
<!--<?php edit_post_link('(edit this)'); ?>--></h2>
<div class="post-content">
<?php the_content('Continue Reading »'); ?>
<?php $sub_pages = wp_list_pages( 'sort_column=menu_order&depth=1&title_li=&echo=0&child_of=' . $id );?>
<?php if ($sub_pages <> "" ){?>
<p class="post-title">
<em></em>
</p>
<ul>
<?php echo $sub_pages; ?>
</ul>
<?php }?>
<?php wp_link_pages(); ?>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<p class="post-footer">
<?php comments_popup_link('kommentieren »', '1 Kommentar »', '% Kommentare »','','Kommentare geschlossen'); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft">
<?php previous_posts_link('« Newer Posts') ?>
</div>
<div class="alignright">
<?php next_posts_link('Older Posts »') ?>
</div>
</div>
<?php else : include_once(TEMPLATEPATH. '/notfound.php'); endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen