-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaxonomy.php
34 lines (31 loc) · 1.69 KB
/
taxonomy.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
30
31
32
33
34
<?php get_header(); ?>
<section id="content-wide" role="main">
<?php if (have_posts()) { ?>
<h1 class="entry-title"><?php single_term_title(''); ?></h1>
<?php while (have_posts()) : the_post(); ?>
<div class="noir-box">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('imagepress_ls_std'); ?></a>
<p>
<b><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></b>
<br><small><?php the_terms($post->ID, 'imagepress_image_category', '', ', ', ''); ?></small>
<br><small><?php the_author_posts_link(); ?> | <?php the_time(get_option('date_format')); ?></small>
</p>
</div>
<?php endwhile; ?>
<?php
global $wp_query;
if ($wp_query->max_num_pages > 1) { ?>
<nav id="nav-below" class="navigation" role="navigation">
<div class="nav-previous"><?php next_posts_link(sprintf(__('%s older', 'noir-ui'), '<span class="meta-nav">←</span>')); ?></div>
<div class="nav-next"><?php previous_posts_link(sprintf(__('newer %s', 'noir-ui'), '<span class="meta-nav">→</span>')); ?></div>
</nav>
<?php } ?>
<?php } else { ?>
<h2 class="entry-title"><?php _e('Nothing found', 'noir-ui'); ?></h2>
<section class="entry-content">
<p><?php _e('Sorry, nothing matched your search. Please try again.', 'noir-ui'); ?></p>
<?php get_search_form(); ?>
</section>
<?php } ?>
</section>
<?php get_footer();