-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-single.php
More file actions
25 lines (24 loc) · 871 Bytes
/
content-single.php
File metadata and controls
25 lines (24 loc) · 871 Bytes
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
<article class="artikel">
<h1 class="artikel__ueberschrift"><?php the_title(); ?></h2>
<?php if ( has_post_thumbnail() ) { ?>
<div class="artikel__foto__div">
<img src="<?php the_post_thumbnail_url() ?>" class="artikel__foto">
<p class="artikel__foto__bildnachweis"><?php the_post_thumbnail_caption() ?></p>
</div>
<?php } ?>
<div class="artikel__text">
<div class="artikel__content">
<?php the_content(); ?>
<p class="artikel__content__autor">
<?php if ( get_field("anderer_autor") ) {
the_field("anderer_autor");
} else {
the_author_posts_link();
} ?>
</p>
</div>
<div class="artikel__rand">
<?php get_sidebar(); ?>
</div>
</div>
</article>