forked from korbinian/Piratenkleider
-
Notifications
You must be signed in to change notification settings - Fork 1
/
loop-category.php
29 lines (22 loc) · 1.38 KB
/
loop-category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<h1><?php printf( __( 'Pressearchiv: %s', 'twentyten' ), '' . single_cat_title( '', false ) . '' ); ?></h1>
<?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo '' . $category_description . ''; ?>
<?php /* If there are no posts to display, such as an empty archive page */ ?>
<?php if ( ! have_posts() ) : ?>
<h1><?php _e( 'Nicht gefunden', 'twentyten' ); ?></h1>
<p><?php _e( 'Vielleicht hilft eine Suche weiter?', 'twentyten' ); ?></p>
<div class="fullwidth"><?php get_search_form(); ?></div>
<?php endif; ?>
<?php while ( have_posts() ) : the_post(); ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php twentyten_posted_on(); ?>
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '' . __( 'Seiten:', 'twentyten' ), 'after' => '' ) ); ?>
<?php endwhile; // End the loop. Whew. ?>
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<?php next_posts_link( __( '← Ältere Beiträge', 'twentyten' ) ); ?>
<?php previous_posts_link( __( 'Neuere Beiträge →', 'twentyten' ) ); ?>
<?php endif; ?>