-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-goatsold.php
60 lines (36 loc) · 1.6 KB
/
single-goatsold.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
<?php get_header(); ?>
<div class="container">
<div class="page-header">
<div class="row">
<div class="col-xs-9">
<h1>Portfolio</h1>
</div>
<div class="col-xs-3 prev-next">
<?php next_post_link( '%link', '<span class="glyphicon glyphicon-circle-arrow-left"></span>' ); ?>
<a href="<?php bloginfo('url'); ?>/?p=68"><span class="glyphicon glyphicon-th"></span></a>
<?php previous_post_link( '%link', '<span class="glyphicon glyphicon-circle-arrow-right"></span>' ); ?>
</div>
</div>
</div>
<div class="row">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="col-sm-8 portfolio-image">
<?php
$thumbnail_id = get_post_thumbnail_id();
$thumbnail_url = wp_get_attachment_image_src( $thumbnail_id, 'thumbnail-size', true );
?>
<p><a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_url[0]; ?>" alt="<?php the_title();?> graphic"></a></p>
</div>
<div class="col-sm-4">
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<p><a class="btn btn-large btn-primary" href="<?php the_field('link'); ?>">View Final Piece <span class="glyphicon glyphicon-arrow-right"></span></a></p>
</div>
<?php endwhile; else: ?>
<div class="page-header">
<h1>Oh no!</h1>
</div>
<p>No content is appearing for this page!</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>