-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
52 lines (43 loc) · 1.42 KB
/
archive.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
<?php
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Lance
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</header><!-- .page-header -->
<div id="projects">
<?php while ( have_posts() ) : the_post();
echo '<div class="project hvr-float">';
echo '<a class="" href="' . get_permalink() . '" title="Learn more about ' . get_the_title() . '">';
echo '<span class="cover">';
the_post_thumbnail('project-thumb');
echo '<div class="project-caption">';
echo '<h1 class="project-title">' . get_the_title() . '</h1>';
if ( 'projects' == get_post_type()) {
echo get_the_term_list($post->ID, 'clients', '<h1 class="project-client">', '</h1><h1 class="project-client">', '</h1>' );
}
else {
echo get_the_term_list($post->ID, 'year', '<h1 class="project-client">', '</h1><h1 class="project-client">', '</h1>' );
}
echo '</div>';
echo '</span>';
echo '</a>';
echo '</div>';
endwhile; // End of the loop.
?>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_sidebar();
get_footer();