-
Notifications
You must be signed in to change notification settings - Fork 0
/
singular.php
57 lines (52 loc) · 1.3 KB
/
singular.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
if ( is_single() ) {
get_header(null, ['title' => get_the_title() . ' - IISP MUN']);
}
else {
get_header(null, ['title' => get_field( "title" ) . ' - IISP MUN']);
}?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="blog-header">
<img src="<?php the_post_thumbnail_url();?>">
<div class="text">
<h1>
<?php if ( is_single() ) {
the_title();
}
else {
the_field( "title" );
}?>
</h1>
<h4>
<?php if ( is_single() ) {
the_author();
}
else {
the_field( "subtitle" );
}?>
</h4>
</div>
</div>
<section id="blog">
<div class="container">
<div class="blog-content">
<h1>
<?php if ( is_single() ) {
the_title();
}
else {
the_field( "title" );
}?>
</h1>
<?php the_content(); ?>
</div>
</div>
<div class="comments-section-container">
<?php
if (comments_open() or get_comments_number()) {
comments_template();
} ?>
</div>
</section>
<?php endwhile; endif; ?>
<?php get_footer();?>