-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-teachingresource.php
More file actions
41 lines (33 loc) · 1.12 KB
/
single-teachingresource.php
File metadata and controls
41 lines (33 loc) · 1.12 KB
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
<?php get_header();
get_template_part( 'content/archive-header' );
do_action( 'after_archive_header' ); ?>
<div <?php post_class(); ?>>
<article>
<div class="post-container">
<div class='post-header'>
<h1 class='post-title'><?php the_title(); ?></h1>
</div>
<div class="post-content">
<p class="last-updated">Last updated on <?php echo get_the_modified_date() ?></p>
<h3>Description</h3>
<?php the_content(); ?>
<form action='<?php the_field('resource_link');?>' target="_blank">
<input type="submit" value="Visit Resource Site" />
</form>
<br>
<h4>Tag(s)</h4>
<ul class="no-bullets">
<?php if( get_field('category') ): ?>
<li><?php the_field('category'); ?></li>
<?php endif ?>
</ul>
</div>
<nav class="further-reading">
<div class="previous">
<a href="<?php echo get_post_type_archive_link( 'teachingresource' ); ?>">Back to Resources</a>
</div>
</nav>
</div>
</article><?php
ct_period_pagination();
get_footer();