-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-portfolio.php
More file actions
37 lines (27 loc) · 940 Bytes
/
Copy pathsingle-portfolio.php
File metadata and controls
37 lines (27 loc) · 940 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
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* The template for displaying a project / portfolio
*/
get_header(); ?>
<div class="content">
<main class="project">
<?php while ( have_posts() ) : the_post(); ?>
<div class="container">
<div class="project__hero-wrap">
<?php if( get_field('featured_video_link') ): ?>
<?php echo wp_oembed_get( get_field('featured_video_link') ); ?>
<?php elseif( has_post_thumbnail() ): ?>
<?php the_post_thumbnail(); ?>
<?php endif; ?>
<div class="project__info">
<h1 class="project__title"><?php the_title(); ?></h1>
<span class="project__role"><?php the_field('role') ?></span>
<?php the_field('project_description') ?>
</div>
</div>
</div>
<?php get_template_part( 'components/single/single', 'content' ); ?>
<?php endwhile; ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>