-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtag.php
More file actions
75 lines (57 loc) · 1.42 KB
/
tag.php
File metadata and controls
75 lines (57 loc) · 1.42 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* The tag archive
*
* @package huhu
* @since 0.1
*/
get_header(); ?>
<main id="primary" class="site-content">
<header class="tag-header">
<div class="tag-title">Schlagwort:
<?php single_tag_title( ); ?>
</div>
<div class="tag-description">
<?php echo tag_description( ); ?>
</div>
</header>
<?php
// Start the Loop.
while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php /* Headline */ ?>
<header class="entry-header">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</h2>
</header>
<?php /* Text */ ?>
<div class="entry-content">
<?php
if(is_post_type('pinseldisko')) {
echo '<p>';
echo get_the_excerpt();
echo '</p>'; ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail('medium'); ?></a>
<?php
} elseif (is_post_type('raketenstaub')) {
?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail('medium'); ?></a>
<?php
} else {
the_excerpt();
} ?>
</div>
<?php /* Date */ ?>
<footer class="entry-date published">
<?php echo get_the_date(); ?>
<?php get_template_part( 'microformats' ) ?>
</footer>
</article>
<?php endwhile;?>
</main>
<?php get_footer(); ?>