-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-factory.php
67 lines (59 loc) · 1.72 KB
/
archive-factory.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
61
62
63
64
65
66
67
<?php
/**
* The template for displaying factory archive items
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package soapatrickseven
*/
get_header(); ?>
<section class="factory-list">
<div class="grid breadcrumbs-wrapper">
<nav class="breadcrumbs">
<span class="breadcrumbs__item"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'SoaPatrick', 'soapatrickseven' ) ?></a></span>
<span class="breadcrumbs--item__last"><?php esc_html_e( 'Factory', 'soapatrickseven' ) ?></span>
</nav>
</div>
<header class="grid">
<h1 class="title-large"><?php esc_html_e( 'Factory', 'soapatrickseven' ) ?></h1>
<hr>
</header>
<div class="grid">
<div class="tag--list">
<?php
$args = array(
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => TRUE,
'fields' => 'all',
);
$terms = get_terms( 'factory_tags', $args);
foreach ( $terms as $term ) {
$url = get_term_link( $term );
if ( is_wp_error( $url ) ) {
continue;
}
printf(
'<a href="%s" class="btn btn-small">%s</a>',
$url,
$term->name
);
}
?>
</div>
</div>
<div class="grid">
<div class="factory-list__list">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'template-partials/content/content', 'featured-full' );
endwhile;
endif;
?>
</div>
</div>
</section>
<?php soapatrickseven_posts_navigation(); ?>
<?php
get_footer();