-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
46 lines (38 loc) · 1.66 KB
/
single.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
<?php get_header(); ?>
<?php
$posts_page = get_option( 'page_for_posts' );
global $post;
?>
<section class="title-section text-left text-sm-center revealator-slideup revealator-once revealator-delay1">
<h1>MY <span>BLOG</span></h1>
<?php if ($posts_page): ?>
<span class="title-bg"><?php the_field('subtitle',$posts_page); ?></span>
<?php endif; ?>
</section>
<section class="main-content revealator-slideup revealator-once revealator-delay1">
<div class="container">
<div class="row">
<!-- Article Starts -->
<article class="col-12">
<!-- Meta Starts -->
<div class="meta open-sans-font">
<span><i class="fa fa-user"></i> <?php echo get_the_author_meta('user_nicename',$post->post_author); ?> </span>
<span class="date"><i class="fa fa-calendar"></i> <?php echo get_the_date(); ?></span>
<span><i class="fa fa-tags"></i> <?php the_tags() ?></span>
</div>
<!-- Meta Ends -->
<!-- Article Content Starts -->
<h1 class="text-uppercase text-capitalize"><?php the_title(); ?></h1>
<!-- post thumbnail -->
<?php if ( has_post_thumbnail() ) : // Check if Thumbnail exists. ?>
<?php the_post_thumbnail(); // Fullsize image for the single post. ?>
<?php endif; ?>
<!-- /post thumbnail -->
<?php the_content(); // Dynamic Content. ?>
<!-- Article Content Ends -->
</article>
</div>
</div>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>