-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy.php
62 lines (54 loc) · 2.02 KB
/
taxonomy.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
<?php
/**
* Template for displaying Taxonomies Archive pages
*
* Custom taxonomies use the following template file path:
*
* 1. taxonomy-{taxonomy}-{term}.php – If the taxonomy is sometax, and taxonomy's term is someterm, WordPress will look for taxonomy-sometax-someterm.php. In the case of post formats, the taxonomy is ‘post_format' and the terms are ‘post-format-{format}. i.e. taxonomy-post_format-post-format-link.php for the link post format.
* 2. taxonomy-{taxonomy}.php – If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php.
* 3. taxonomy.php
* 4. archive.php
* 5. index.php
*
* Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#custom-taxonomies
*
* @package WP_Basic_Bootstrap
* @since WP_Basic_Bootstrap 1.0
*/
$template = get_template_type();
$page_type = get_page_type();
if (BASICBOOTSTRAP_TPLDBG) {
error_log('loaded file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
}
get_header_hierarchical('taxonomy'); ?>
<div id="content" role="main">
<?php get_the_breadcrumb(); ?>
<header class="header">
<h1 class="entry-title">
<?php the_archive_title(); ?>
</h1>
<?php // marchpô
/*
<?php if (get_basicbootstrap_mod('show_edit_links')) : ?>
<section class="entry-meta blog-post-meta hidden-print">
<?php
edit_term_link(
__('Edit', 'basicbootstrap'),
'<i class="fa fa-pencil-square fa-fw"></i> ',
'</span>',
get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'))
);
?>
</section>
<?php endif; ?>
*/
?>
<?php the_archive_description('<div class="taxonomy-description lead">', '</div>'); ?>
</header>
<hr />
<?php get_template_part_hierarchical('partials/loop'); ?>
</div>
<?php get_sidebar_hierarchical('taxonomy'); ?>
<?php get_footer_hierarchical('taxonomy'); ?>