-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaxonomy-howto_category.php
46 lines (40 loc) · 1.14 KB
/
taxonomy-howto_category.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
<?php get_header(); ?>
<section class="woo-banner section">
<div class="lazy-parent">
<?php $image = get_field('page_header_image', 18956); ?>
<div class="background-image lazy-child" style="background-image: url(<?= $image['sizes']['blur']; ?>)" data-bg-src="<?= $image['url']; ?>"></div>
</div>
<div class="container">
<h1 class="page-title"><?php single_term_title(); ?> </h1>
</div>
</section>
<section class="blog-nav--section section thin">
<div class="container tacenter">
<ul class="blog-nav--list">
<?php
$terms = get_terms('howto_category');
foreach($terms as $term) :
$term_link = get_term_link( $term )
?>
<li>
<a href="<?= $term_link; ?>" title="<?= $term->name; ?>">
<?= $term->name; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</section>
<section class="section blog-list">
<div class="smaller container flex">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'components/card-howto' ); ?>
<?php endwhile; ?>
</div>
</section>
<section class="section">
<div class="container">
<?php numeric_posts_nav(); ?>
</div>
</section>
<?php get_footer(); ?>