-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
68 lines (60 loc) · 2.26 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php get_header(); ?>
<?php if (have_posts()) { while (have_posts()) { the_post(); $url = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); $alt = get_post_meta(get_post_thumbnail_id($post->ID), '_wp_attachment_image_alt', true); $title = get_post(get_post_thumbnail_id())->post_title; ?>
<section class="contact-banner">
<div class="container">
<div class="row">
<div class="col-sm-12">
<h2><?php the_title(); ?></h2>
<p>Blog / <?php the_title(); ?></p>
</div>
</div>
</div>
</section>
<section class="blog-content">
<div class="container">
<div class="row">
<div class="col-sm-9">
<?php the_post_thumbnail(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<div class="view">
<?php comments_template(); ?>
</div>
<div class="share">
<h3>Share the Blog</h3>
<?php echo do_shortcode( '[Sassy_Social_Share]' ); ?>
</div>
</div>
<div class="col-sm-3">
<?php if ( is_active_sidebar( 'custom-side-bar' ) ) : ?>
<?php dynamic_sidebar( 'custom-side-bar' ); ?>
<?php endif; ?>
</div>
</div>
</div>
</section>
<section class="blog">
<div class="container">
<h2>You also may like</h2>
<div class="row">
<div class="col-sm-9">
<div class="row">
<?php
$args3 =array(
'type' => 'posts',
'posts_per_page' => 3,
);
include('blogListLoop.php');
?>
</div>
</div>
<div class="col-sm-3">
<h4>Blog Posts</h4>
<p>Check out our blog posts for free insights and updates on your field.</p>
<a href="/blog"><button class="showbtn">Show me</button></a>
</div>
</div>
</div>
</section>
<?php } } wp_reset_postdata(); ?>
<?php get_footer(); ?>