-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
60 lines (51 loc) · 1.56 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
51
52
53
54
55
56
57
58
59
60
<?php
$redirect_term = get_queried_object();
$redirect_url = get_field( 'term_archive_page', $redirect_term );
if ( $redirect_url != '' ) :
wp_redirect( $redirect_url, 301 );
else :
//$home_url = get_home_url();
//wp_redirect( $home_url, 307 );
?>
<?php
// Paperplane _blankTheme - template per archive
get_header();
?>
<div class="wrapper">
<div class="wrapper-padded">
<div class="wrapper-padded-intro">
<div class="page-opening-padder">
<div class="breadcrumbs-holder grey-links undelinked-links" typeof="BreadcrumbList" vocab="http://schema.org/">
<?php bcn_display(); ?>
</div>
<div class="flex-hold flex-hold-page-opening">
<div class="page-opening-left">
<h1><?php echo single_term_title(); ?></h1>
<?php echo term_description(); ?>
</div>
<div class="page-opening-right">
<div class="padder">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="wrapper">
<div class="wrapper-padded">
<div class="wrapper-padded-more">
<div class="listing-box">
<h2>Tutto su <?php echo single_term_title(); ?></h2>
<div class="flex-hold flex-hold-3 margins-wide grid-separator-2">
<?php while ( have_posts() ) : the_post(); ?>
<?php include( locate_template( 'template-parts/grid/listing-card.php' ) ); ?>
<?php endwhile; wp_reset_postdata(); ?>
</div>
<?php wp_pagenavi(); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
<?php endif; ?>