-
Notifications
You must be signed in to change notification settings - Fork 15
/
content-list-home.php
35 lines (20 loc) · 1.04 KB
/
content-list-home.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
35
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<a href="<?php the_permalink(); ?>" class="postimglist"><?php the_post_thumbnail('titelbild'); ?></a>
<?php endif; ?>
<header class="article-header">
<?php $posttags = get_the_tags();
$count=0;
if ($posttags) {
?><p class="subhead"><?php
foreach($posttags as $tag) {
$count++;
if (1 == $count) {
echo '' .$tag->name. ' ';
} }
?></p><?php
}?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
</header>
<section class="article-teaser"><?php the_excerpt(); ?></section>
</article>