forked from adampatterson/axe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
executable file
·31 lines (26 loc) · 952 Bytes
/
category.php
File metadata and controls
executable file
·31 lines (26 loc) · 952 Bytes
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
<?php
$data = get_fields();
include( get_template_part_acf( 'templates/partials/header' ) );
echo '<!-- master/category -->';
$cat = get_query_var( 'cat' );
$yourcat = get_category( $cat ); ?>
<div class="wrapper terms">
<div class="container">
<h3 class="entry-title"><?= $yourcat->slug; ?></h3>
</div>
</div>
<div class="wrapper">
<div class="container">
<section id="post-caegory">
<? if ( have_posts() ):
include( get_template_part_acf( 'templates/loop', 'post' ) ); ?>
<div class="text-center">
<? axe_paging_nav() ?>
</div>
<? else:
include( get_template_part_acf( 'templates/content', 'none' ) );
endif; ?>
</section>
</div>
</div>
<? include( get_template_part_acf( 'templates/partials/footer' ) );